/** * Filter the query by a related \SoColissimo\Model\Thelia\Model\OrderAddress object * * @param \SoColissimo\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 ChildOrderAddressSocolissimoQuery The current query, for fluid interface */ public function filterByOrderAddress($orderAddress, $comparison = null) { if ($orderAddress instanceof \SoColissimo\Model\Thelia\Model\OrderAddress) { return $this->addUsingAlias(OrderAddressSocolissimoTableMap::ID, $orderAddress->getId(), $comparison); } elseif ($orderAddress instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(OrderAddressSocolissimoTableMap::ID, $orderAddress->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByOrderAddress() only accepts arguments of type \\SoColissimo\\Model\\Thelia\\Model\\OrderAddress or Collection'); } }
/** * Declares an association between this object and a ChildOrderAddress object. * * @param ChildOrderAddress $v * @return \SoColissimo\Model\OrderAddressSocolissimo 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->setOrderAddressSocolissimo($this); } return $this; }