public function filterBySource($source, $comparison = null)
    {
        if ($source instanceof \Attogram\SharedMedia\Orm\Source) {
            return $this
                ->addUsingAlias(CategoryTableMap::COL_SOURCE_ID, $source->getId(), $comparison);
        } elseif ($source instanceof ObjectCollection) {
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }

            return $this
                ->addUsingAlias(CategoryTableMap::COL_SOURCE_ID, $source->toKeyValue('PrimaryKey', 'Id'), $comparison);
        } else {
            throw new PropelException('filterBySource() only accepts arguments of type \Attogram\SharedMedia\Orm\Source or Collection');
        }
    }
public function filterBySource($source, $comparison = null)
    {
        if ($source instanceof \Attogram\SharedMedia\Orm\Source) {
            return $this
                ->addUsingAlias(CategoryTableMap::COL_SOURCE_ID, $source->getId(), $comparison);
        } elseif ($source instanceof ObjectCollection) {
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }

            return $this
                ->addUsingAlias(CategoryTableMap::COL_SOURCE_ID, $source->toKeyValue('PrimaryKey', 'Id'), $comparison);
        } else {
            throw new PropelException('filterBySource() only accepts arguments of type \Attogram\SharedMedia\Orm\Source or Collection');
        }
    }
public function filterBySource ( $ source , $ comparison = null ) { if ( $ source instanceof \ Attogram \ SharedMedia \ Orm \ Source ) { return $ this -> addUsingAlias ( CategoryTableMap :: COL_SOURCE_ID , $ source -> getId ( ) , $ comparison ) ; } elseif ( $ source instanceof ObjectCollection ) { if ( null === $ comparison ) { $ comparison = Criteria :: IN ; } return $ this -> addUsingAlias ( CategoryTableMap :: COL_SOURCE_ID , $ source -> toKeyValue ( 'PrimaryKey' , 'Id' ) , $ comparison ) ; } else { throw new PropelException ( 'filterBySource() only accepts arguments of type \Attogram\SharedMedia\Orm\Source or Collection' ) ; } }
Filter the query by a related \Attogram\SharedMedia\Orm\Source object

@param \Attogram\SharedMedia\Orm\Source|ObjectCollection $source 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 ChildCategoryQuery The current query, for fluid interface
Filter the query by a related \ Attogram \ SharedMedia \ Orm \ Source object