Ejemplo n.º 1
0
 /**
  * @param ChildItems $items The ChildItems object to add.
  */
 protected function doAddItems(ChildItems $items)
 {
     $this->collItemss[] = $items;
     $items->setSubcategories($this);
 }
Ejemplo n.º 2
0
 /**
  * Exclude object from result
  *
  * @param   ChildItems $items Object to remove from the list of results
  *
  * @return $this|ChildItemsQuery The current query, for fluid interface
  */
 public function prune($items = null)
 {
     if ($items) {
         $this->addUsingAlias(ItemsTableMap::COL_ITEM_ID, $items->getItemId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Ejemplo n.º 3
0
 /**
  * Filter the query by a related \Items object
  *
  * @param \Items|ObjectCollection $items the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByItems($items, $comparison = null)
 {
     if ($items instanceof \Items) {
         return $this->addUsingAlias(UserTableMap::COL_USER_ID, $items->getUserId(), $comparison);
     } elseif ($items instanceof ObjectCollection) {
         return $this->useItemsQuery()->filterByPrimaryKeys($items->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByItems() only accepts arguments of type \\Items or Collection');
     }
 }
Ejemplo n.º 4
0
 /**
  * @param ChildItems $items The ChildItems object to add.
  */
 protected function doAddItems(ChildItems $items)
 {
     $this->collItemss[] = $items;
     $items->setUser($this);
 }