public function toAssoc()
    {
        $params = [];
        foreach (Extract::getObjectVars($this) as $key => $value) {
            if (!$value instanceof Relation) {
                $params[$key] = $value;
            }
        }
        if ($this->getPrimaryKeyValue() === null) {
            unset($params[$this->getPrimaryKey()]);
        }
        return $params;
    }
public function toAssoc()
    {
        $params = [];
        foreach (Extract::getObjectVars($this) as $key => $value) {
            if (!$value instanceof Relation) {
                $params[$key] = $value;
            }
        }
        if ($this->getPrimaryKeyValue() === null) {
            unset($params[$this->getPrimaryKey()]);
        }
        return $params;
    }
public function toAssoc ( ) { $ params = [ ] ; foreach ( Extract :: getObjectVars ( $ this ) as $ key => $ value ) { if ( ! $ value instanceof Relation ) { $ params [ $ key ] = $ value ; } } if ( $ this -> getPrimaryKeyValue ( ) === null ) { unset ( $ params [ $ this -> getPrimaryKey ( ) ] ) ; } return $ params ; }
Returns an associative array from this object excluding private variables and Relation objects

@return array
Returns an associative array from this object excluding private variables and Relation objects