/** * 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\EntityType object * * @param \ECP\EntityType|ObjectCollection $entityType 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 ChildGroupAccessQuery The current query, for fluid interface */ public function filterByEntityType($entityType, $comparison = null) { if ($entityType instanceof \ECP\EntityType) { return $this->addUsingAlias(GroupAccessTableMap::COL_ENTITYTYPEID, $entityType->getId(), $comparison); } elseif ($entityType instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(GroupAccessTableMap::COL_ENTITYTYPEID, $entityType->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByEntityType() only accepts arguments of type \\ECP\\EntityType or Collection'); } }
/** * Exclude object from result * * @param ChildEntityType $entityType Object to remove from the list of results * * @return $this|ChildEntityTypeQuery The current query, for fluid interface */ public function prune($entityType = null) { if ($entityType) { $this->addUsingAlias(EntityTypeTableMap::COL_ID, $entityType->getId(), Criteria::NOT_EQUAL); } return $this; }