Guesser/PropelORMFieldGuesser.php
public function getModelPrimaryKeyName($class = null)
    {
        $pks = $this->getMetadatas($class)->getPrimaryKeyColumns();

        if (count($pks) == 1) {
            return $pks[0]->getPhpName();
        }

        throw new \LogicException('No valid primary keys found');
    }
public function getModelPrimaryKeyName($class = null)
    {
        $pks = $this->getMetadatas($class)->getPrimaryKeyColumns();

        if (count($pks) == 1) {
            return $pks[0]->getPhpName();
        }

        throw new \LogicException('No valid primary keys found');
    }
public function getModelPrimaryKeyName ( $ class = null ) { $ pks = $ this -> getMetadatas ( $ class ) -> getPrimaryKeyColumns ( ) ; if ( count ( $ pks ) == 1 ) { return $ pks [ 0 ] -> getPhpName ( ) ; } throw new \ LogicException ( 'No valid primary keys found' ) ; }
Find the pk name
Find the pk name