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');
        }
    }