public static function selectOne(Connection $connection)
    {
        $selector = new EntitySelector(AbstractSelector::fromConnection($connection, static::$table, static::$types), get_called_class());

        return $selector->one();
    }
public static function selectOne(Connection $connection)
    {
        $selector = new EntitySelector(AbstractSelector::fromConnection($connection, static::$table, static::$types), get_called_class());

        return $selector->one();
    }
public static function selectOne ( Connection $ connection ) { $ selector = new EntitySelector ( AbstractSelector :: fromConnection ( $ connection , static :: $ table , static :: $ types ) , get_called_class ( ) ) ; return $ selector -> one ( ) ; }
Select a single entity using an EntitySelector instance.

@param  Connection     $connection A connection instance
@return EntitySelector A selector instance
Select a single entity using an EntitySelector instance .