protected function purgePrimaryKeyValue(&$record)
    {
        foreach((array) $this->ORMParameters['primaryKey'] as $field) {
            if(is_array($record) && (isset($record[$field]) || $record[$field] === null)) {
                unset($record[$field]);
            } elseif(is_object($record) && isset($record->$field) ) {
                unset($record->$field);
            }
        }
    }
protected function purgePrimaryKeyValue(&$record)
    {
        foreach((array) $this->ORMParameters['primaryKey'] as $field) {
            if(is_array($record) && (isset($record[$field]) || $record[$field] === null)) {
                unset($record[$field]);
            } elseif(is_object($record) && isset($record->$field) ) {
                unset($record->$field);
            }
        }
    }
protected function purgePrimaryKeyValue ( & $ record ) { foreach ( ( array ) $ this -> ORMParameters [ 'primaryKey' ] as $ field ) { if ( is_array ( $ record ) && ( isset ( $ record [ $ field ] ) || $ record [ $ field ] === null ) ) { unset ( $ record [ $ field ] ) ; } elseif ( is_object ( $ record ) && isset ( $ record -> $ field ) ) { unset ( $ record -> $ field ) ; } } }
Purges primary key value for a record
@param mixed $record array or object with record data
Purges primary key value for a record