Esempio n. 1
0
 /**
  * Exclude object from result
  *
  * @param   ChildDeliveryType $deliveryType Object to remove from the list of results
  *
  * @return $this|ChildDeliveryTypeQuery The current query, for fluid interface
  */
 public function prune($deliveryType = null)
 {
     if ($deliveryType) {
         $this->addUsingAlias(DeliveryTypeTableMap::COL_DELIVERY_TYPE_ID, $deliveryType->getDeliveryTypeId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Esempio n. 2
0
 /**
  * Declares an association between this object and a ChildDeliveryType object.
  *
  * @param  ChildDeliveryType $v
  * @return $this|\App\Propel\DeliveryTypeI18n The current object (for fluent API support)
  * @throws PropelException
  */
 public function setDeliveryType(ChildDeliveryType $v = null)
 {
     if ($v === null) {
         $this->setDeliveryTypeId(NULL);
     } else {
         $this->setDeliveryTypeId($v->getDeliveryTypeId());
     }
     $this->aDeliveryType = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildDeliveryType object, it will not be re-added.
     if ($v !== null) {
         $v->addDeliveryTypeI18n($this);
     }
     return $this;
 }
Esempio n. 3
0
 /**
  * Filter the query by a related \App\Propel\DeliveryType object
  *
  * @param \App\Propel\DeliveryType|ObjectCollection $deliveryType 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 ChildDeliveryQuery The current query, for fluid interface
  */
 public function filterByDeliveryType($deliveryType, $comparison = null)
 {
     if ($deliveryType instanceof \App\Propel\DeliveryType) {
         return $this->addUsingAlias(DeliveryTableMap::COL_DELIVERY_TYPE_ID, $deliveryType->getDeliveryTypeId(), $comparison);
     } elseif ($deliveryType instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(DeliveryTableMap::COL_DELIVERY_TYPE_ID, $deliveryType->toKeyValue('PrimaryKey', 'DeliveryTypeId'), $comparison);
     } else {
         throw new PropelException('filterByDeliveryType() only accepts arguments of type \\App\\Propel\\DeliveryType or Collection');
     }
 }