/** * Declares an association between this object and a ChildCustomerTitle object. * * @param ChildCustomerTitle $v * @return \Thelia\Model\CustomerTitleI18n The current object (for fluent API support) * @throws PropelException */ public function setCustomerTitle(ChildCustomerTitle $v = null) { if ($v === null) { $this->setId(NULL); } else { $this->setId($v->getId()); } $this->aCustomerTitle = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildCustomerTitle object, it will not be re-added. if ($v !== null) { $v->addCustomerTitleI18n($this); } return $this; }
/** * Filter the query by a related \Thelia\Model\CustomerTitle object * * @param \Thelia\Model\CustomerTitle|ObjectCollection $customerTitle The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildCustomerTitleI18nQuery The current query, for fluid interface */ public function filterByCustomerTitle($customerTitle, $comparison = null) { if ($customerTitle instanceof \Thelia\Model\CustomerTitle) { return $this->addUsingAlias(CustomerTitleI18nTableMap::ID, $customerTitle->getId(), $comparison); } elseif ($customerTitle instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(CustomerTitleI18nTableMap::ID, $customerTitle->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByCustomerTitle() only accepts arguments of type \\Thelia\\Model\\CustomerTitle or Collection'); } }
/** * Exclude object from result * * @param ChildCustomerTitle $customerTitle Object to remove from the list of results * * @return ChildCustomerTitleQuery The current query, for fluid interface */ public function prune($customerTitle = null) { if ($customerTitle) { $this->addUsingAlias(CustomerTitleTableMap::ID, $customerTitle->getId(), Criteria::NOT_EQUAL); } return $this; }