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