/** * Clears the current object, sets all attributes to their default values and removes * outgoing references as well as back-references (from other objects to this one. Results probably in a database * change of those foreign objects when you call `save` there). */ public function clear() { if (null !== $this->aGroup) { $this->aGroup->removeGroupEvePerson($this); } if (null !== $this->aGroupPersonType) { $this->aGroupPersonType->removeGroupEvePerson($this); } $this->id = null; $this->groupid = null; $this->grouppersontypeid = null; $this->name = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Clears the current object, sets all attributes to their default values and removes * outgoing references as well as back-references (from other objects to this one. Results probably in a database * change of those foreign objects when you call `save` there). */ public function clear() { if (null !== $this->aEntityType) { $this->aEntityType->removeGroupAccess($this); } if (null !== $this->aGroup) { $this->aGroup->removeGroupAccess($this); } $this->id = null; $this->entitytypeid = null; $this->entityid = null; $this->groupid = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Filter the query by a related \ECP\Group object * * @param \ECP\Group|ObjectCollection $group 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 filterByGroup($group, $comparison = null) { if ($group instanceof \ECP\Group) { return $this->addUsingAlias(GroupPersonTableMap::COL_GROUPID, $group->getId(), $comparison); } elseif ($group instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(GroupPersonTableMap::COL_GROUPID, $group->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByGroup() only accepts arguments of type \\ECP\\Group or Collection'); } }
/** * Exclude object from result * * @param ChildGroup $group Object to remove from the list of results * * @return $this|ChildGroupQuery The current query, for fluid interface */ public function prune($group = null) { if ($group) { $this->addUsingAlias(GroupTableMap::COL_ID, $group->getId(), Criteria::NOT_EQUAL); } return $this; }