Esempio n. 1
0
 /**
  * Filter the query by a related \Bill object
  *
  * @param \Bill|ObjectCollection $bill the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildTaskQuery The current query, for fluid interface
  */
 public function filterByBill($bill, $comparison = null)
 {
     if ($bill instanceof \Bill) {
         return $this->addUsingAlias(TaskTableMap::COL_ID, $bill->getTaskId(), $comparison);
     } elseif ($bill instanceof ObjectCollection) {
         return $this->useBillQuery()->filterByPrimaryKeys($bill->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByBill() only accepts arguments of type \\Bill or Collection');
     }
 }
Esempio n. 2
0
 /**
  * @param ChildBill $bill The ChildBill object to add.
  */
 protected function doAddBill(ChildBill $bill)
 {
     $this->collBills[] = $bill;
     $bill->setTask($this);
 }