public function filterByPlayer($player, $comparison = null)
    {
        if ($player instanceof \eXpansion\Framework\PlayersBundle\Model\Player) {
            return $this
                ->addUsingAlias(RecordTableMap::COL_PLAYER_ID, $player->getId(), $comparison);
        } elseif ($player instanceof ObjectCollection) {
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }

            return $this
                ->addUsingAlias(RecordTableMap::COL_PLAYER_ID, $player->toKeyValue('PrimaryKey', 'Id'), $comparison);
        } else {
            throw new PropelException('filterByPlayer() only accepts arguments of type \eXpansion\Framework\PlayersBundle\Model\Player or Collection');
        }
    }
public function filterByPlayer($player, $comparison = null)
    {
        if ($player instanceof \eXpansion\Framework\PlayersBundle\Model\Player) {
            return $this
                ->addUsingAlias(RecordTableMap::COL_PLAYER_ID, $player->getId(), $comparison);
        } elseif ($player instanceof ObjectCollection) {
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }

            return $this
                ->addUsingAlias(RecordTableMap::COL_PLAYER_ID, $player->toKeyValue('PrimaryKey', 'Id'), $comparison);
        } else {
            throw new PropelException('filterByPlayer() only accepts arguments of type \eXpansion\Framework\PlayersBundle\Model\Player or Collection');
        }
    }
public function filterByPlayer ( $ player , $ comparison = null ) { if ( $ player instanceof \ eXpansion \ Framework \ PlayersBundle \ Model \ Player ) { return $ this -> addUsingAlias ( RecordTableMap :: COL_PLAYER_ID , $ player -> getId ( ) , $ comparison ) ; } elseif ( $ player instanceof ObjectCollection ) { if ( null === $ comparison ) { $ comparison = Criteria :: IN ; } return $ this -> addUsingAlias ( RecordTableMap :: COL_PLAYER_ID , $ player -> toKeyValue ( 'PrimaryKey' , 'Id' ) , $ comparison ) ; } else { throw new PropelException ( 'filterByPlayer() only accepts arguments of type \eXpansion\Framework\PlayersBundle\Model\Player or Collection' ) ; } }
Filter the query by a related \eXpansion\Framework\PlayersBundle\Model\Player object

@param \eXpansion\Framework\PlayersBundle\Model\Player|ObjectCollection $player The related object(s) to use as filter
@param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@throws \Propel\Runtime\Exception\PropelException

@return ChildRecordQuery The current query, for fluid interface
Filter the query by a related \ eXpansion \ Framework \ PlayersBundle \ Model \ Player object