public function toArrayWithoutEmptyValues()
    {
        $array = $this->removeEmptyValues($this->toArray(true));
        foreach ($array as $key => $value) {
            if ($value === \Parable\ORM\Database::NULL_VALUE) {
                $array[$key] = null;
            }
        }
        return $array;
    }
public function toArrayWithoutEmptyValues()
    {
        $array = $this->removeEmptyValues($this->toArray(true));
        foreach ($array as $key => $value) {
            if ($value === \Parable\ORM\Database::NULL_VALUE) {
                $array[$key] = null;
            }
        }
        return $array;
    }
public function toArrayWithoutEmptyValues ( ) { $ array = $ this -> removeEmptyValues ( $ this -> toArray ( true ) ) ; foreach ( $ array as $ key => $ value ) { if ( $ value === \ Parable \ ORM \ Database :: NULL_VALUE ) { $ array [ $ key ] = null ; } } return $ array ; }
Generates an array of the current model, but removes empty values.

@return array
Generates an array of the current model but removes empty values .