public function filterByC2P($c2P, $comparison = null)
    {
        if ($c2P instanceof \Attogram\SharedMedia\Orm\C2P) {
            return $this
                ->addUsingAlias(PageTableMap::COL_ID, $c2P->getPageId(), $comparison);
        } elseif ($c2P instanceof ObjectCollection) {
            return $this
                ->useC2PQuery()
                ->filterByPrimaryKeys($c2P->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByC2P() only accepts arguments of type \Attogram\SharedMedia\Orm\C2P or Collection');
        }
    }
public function filterByC2P($c2P, $comparison = null)
    {
        if ($c2P instanceof \Attogram\SharedMedia\Orm\C2P) {
            return $this
                ->addUsingAlias(PageTableMap::COL_ID, $c2P->getPageId(), $comparison);
        } elseif ($c2P instanceof ObjectCollection) {
            return $this
                ->useC2PQuery()
                ->filterByPrimaryKeys($c2P->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByC2P() only accepts arguments of type \Attogram\SharedMedia\Orm\C2P or Collection');
        }
    }
public function filterByC2P ( $ c2P , $ comparison = null ) { if ( $ c2P instanceof \ Attogram \ SharedMedia \ Orm \ C2P ) { return $ this -> addUsingAlias ( PageTableMap :: COL_ID , $ c2P -> getPageId ( ) , $ comparison ) ; } elseif ( $ c2P instanceof ObjectCollection ) { return $ this -> useC2PQuery ( ) -> filterByPrimaryKeys ( $ c2P -> getPrimaryKeys ( ) ) -> endUse ( ) ; } else { throw new PropelException ( 'filterByC2P() only accepts arguments of type \Attogram\SharedMedia\Orm\C2P or Collection' ) ; } }
Filter the query by a related \Attogram\SharedMedia\Orm\C2P object

@param \Attogram\SharedMedia\Orm\C2P|ObjectCollection $c2P the related object to use as filter
@param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return ChildPageQuery The current query, for fluid interface
Filter the query by a related \ Attogram \ SharedMedia \ Orm \ C2P object