public function filterByRecord($record, $comparison = null)
    {
        if ($record instanceof \eXpansion\Bundle\LocalRecords\Model\Record) {
            return $this
                ->addUsingAlias(PlayerTableMap::COL_ID, $record->getPlayerId(), $comparison);
        } elseif ($record instanceof ObjectCollection) {
            return $this
                ->useRecordQuery()
                ->filterByPrimaryKeys($record->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByRecord() only accepts arguments of type \eXpansion\Bundle\LocalRecords\Model\Record or Collection');
        }
    }
public function filterByRecord($record, $comparison = null)
    {
        if ($record instanceof \eXpansion\Bundle\LocalRecords\Model\Record) {
            return $this
                ->addUsingAlias(PlayerTableMap::COL_ID, $record->getPlayerId(), $comparison);
        } elseif ($record instanceof ObjectCollection) {
            return $this
                ->useRecordQuery()
                ->filterByPrimaryKeys($record->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByRecord() only accepts arguments of type \eXpansion\Bundle\LocalRecords\Model\Record or Collection');
        }
    }
public function filterByRecord ( $ record , $ comparison = null ) { if ( $ record instanceof \ eXpansion \ Bundle \ LocalRecords \ Model \ Record ) { return $ this -> addUsingAlias ( PlayerTableMap :: COL_ID , $ record -> getPlayerId ( ) , $ comparison ) ; } elseif ( $ record instanceof ObjectCollection ) { return $ this -> useRecordQuery ( ) -> filterByPrimaryKeys ( $ record -> getPrimaryKeys ( ) ) -> endUse ( ) ; } else { throw new PropelException ( 'filterByRecord() only accepts arguments of type \eXpansion\Bundle\LocalRecords\Model\Record or Collection' ) ; } }
Filter the query by a related \eXpansion\Bundle\LocalRecords\Model\Record object

@param \eXpansion\Bundle\LocalRecords\Model\Record|ObjectCollection $record the related object to use as filter
@param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return ChildPlayerQuery The current query, for fluid interface
Filter the query by a related \ eXpansion \ Bundle \ LocalRecords \ Model \ Record object