/** * Declares an association between this object and a ChildGroupEvePerson object. * * @param ChildGroupEvePerson $v * @return $this|\ECP\GroupPerson The current object (for fluent API support) * @throws PropelException */ public function setGroupEvePerson(ChildGroupEvePerson $v = null) { if ($v === null) { $this->setGroupevepersonid(NULL); } else { $this->setGroupevepersonid($v->getId()); } $this->aGroupEvePerson = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildGroupEvePerson object, it will not be re-added. if ($v !== null) { $v->addGroupPerson($this); } return $this; }
/** * Filter the query by a related \ECP\GroupEvePerson object * * @param \ECP\GroupEvePerson|ObjectCollection $groupEvePerson 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 ChildGroupPersonQuery The current query, for fluid interface */ public function filterByGroupEvePerson($groupEvePerson, $comparison = null) { if ($groupEvePerson instanceof \ECP\GroupEvePerson) { return $this->addUsingAlias(GroupPersonTableMap::COL_GROUPEVEPERSONID, $groupEvePerson->getId(), $comparison); } elseif ($groupEvePerson instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(GroupPersonTableMap::COL_GROUPEVEPERSONID, $groupEvePerson->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByGroupEvePerson() only accepts arguments of type \\ECP\\GroupEvePerson or Collection'); } }
/** * Exclude object from result * * @param ChildGroupEvePerson $groupEvePerson Object to remove from the list of results * * @return $this|ChildGroupEvePersonQuery The current query, for fluid interface */ public function prune($groupEvePerson = null) { if ($groupEvePerson) { $this->addUsingAlias(GroupEvePersonTableMap::COL_ID, $groupEvePerson->getId(), Criteria::NOT_EQUAL); } return $this; }