src/ActiveDoctrine/Entity/Entity.php
public static function selectPrimaryKey(Connection $connection, $primary_key)
    {
        return static::selectOne($connection)
            ->where(static::$primary_key, $primary_key)
            ->execute();
    }
public static function selectPrimaryKey(Connection $connection, $primary_key)
    {
        return static::selectOne($connection)
            ->where(static::$primary_key, $primary_key)
            ->execute();
    }
public static function selectPrimaryKey ( Connection $ connection , $ primary_key ) { return static :: selectOne ( $ connection ) -> where ( static :: $ primary_key , $ primary_key ) -> execute ( ) ; }
Select a single entity matching a primary key.

@param  Connection  $connection  A connection instance
@param  mixed       $primary_key The primary key
@return Entity|null The entity, or null if not found
Select a single entity matching a primary key .