protected function enforceIdColumn($columns)
    {
        if (!in_array($this->entityMap->getKeyName(), $columns)) {
            $columns[] = $this->entityMap->getKeyName();
        }

        return $columns;
    }
protected function enforceIdColumn($columns)
    {
        if (!in_array($this->entityMap->getKeyName(), $columns)) {
            $columns[] = $this->entityMap->getKeyName();
        }

        return $columns;
    }
protected function enforceIdColumn ( $ columns ) { if ( ! in_array ( $ this -> entityMap -> getKeyName ( ) , $ columns ) ) { $ columns [ ] = $ this -> entityMap -> getKeyName ( ) ; } return $ columns ; }
Add the Entity primary key if not in requested columns.

@param array $columns

@return array
Add the Entity primary key if not in requested columns .