/** * Exclude object from result * * @param ChildWishlist $wishlist Object to remove from the list of results * * @return $this|ChildWishlistQuery The current query, for fluid interface */ public function prune($wishlist = null) { if ($wishlist) { $this->addUsingAlias(WishlistTableMap::COL_WISHLIST_ID, $wishlist->getWishlistId(), Criteria::NOT_EQUAL); } return $this; }
/** * Declares an association between this object and a ChildWishlist object. * * @param ChildWishlist $v * @return $this|\App\Propel\WishlistProduct The current object (for fluent API support) * @throws PropelException */ public function setWishlist(ChildWishlist $v = null) { if ($v === null) { $this->setWishlistId(NULL); } else { $this->setWishlistId($v->getWishlistId()); } $this->aWishlist = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildWishlist object, it will not be re-added. if ($v !== null) { $v->addWishlistProduct($this); } return $this; }
/** * Filter the query by a related \App\Propel\Wishlist object * * @param \App\Propel\Wishlist|ObjectCollection $wishlist 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 ChildWishlistProductQuery The current query, for fluid interface */ public function filterByWishlist($wishlist, $comparison = null) { if ($wishlist instanceof \App\Propel\Wishlist) { return $this->addUsingAlias(WishlistProductTableMap::COL_WISHLIST_ID, $wishlist->getWishlistId(), $comparison); } elseif ($wishlist instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(WishlistProductTableMap::COL_WISHLIST_ID, $wishlist->toKeyValue('PrimaryKey', 'WishlistId'), $comparison); } else { throw new PropelException('filterByWishlist() only accepts arguments of type \\App\\Propel\\Wishlist or Collection'); } }