/**
  * Filter the query by a related \DpdPickup\Model\Thelia\Model\OrderAddress object
  *
  * @param \DpdPickup\Model\Thelia\Model\OrderAddress|ObjectCollection $orderAddress The related object(s) to use as filter
  * @param string                                                      $comparison   Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildOrderAddressIcirelaisQuery The current query, for fluid interface
  */
 public function filterByOrderAddress($orderAddress, $comparison = null)
 {
     if ($orderAddress instanceof \DpdPickup\Model\Thelia\Model\OrderAddress) {
         return $this->addUsingAlias(OrderAddressIcirelaisTableMap::ID, $orderAddress->getId(), $comparison);
     } elseif ($orderAddress instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(OrderAddressIcirelaisTableMap::ID, $orderAddress->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByOrderAddress() only accepts arguments of type \\DpdPickup\\Model\\Thelia\\Model\\OrderAddress or Collection');
     }
 }
 /**
  * Declares an association between this object and a ChildOrderAddress object.
  *
  * @param  ChildOrderAddress                      $v
  * @return \DpdPickup\Model\OrderAddressIcirelais The current object (for fluent API support)
  * @throws PropelException
  */
 public function setOrderAddress(ChildOrderAddress $v = null)
 {
     if ($v === null) {
         $this->setId(NULL);
     } else {
         $this->setId($v->getId());
     }
     $this->aOrderAddress = $v;
     // Add binding for other direction of this 1:1 relationship.
     if ($v !== null) {
         $v->setOrderAddressIcirelais($this);
     }
     return $this;
 }