/** * 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->aUserAccessType) { $this->aUserAccessType->removeUserAccess($this); } if (null !== $this->aUser) { $this->aUser->removeUserAccess($this); } $this->id = null; $this->user_id = null; $this->ipv4_address = null; $this->user_access_type_id = null; $this->access = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Exclude object from result * * @param ChildUserAccessType $userAccessType Object to remove from the list of results * * @return $this|ChildUserAccessTypeQuery The current query, for fluid interface */ public function prune($userAccessType = null) { if ($userAccessType) { $this->addUsingAlias(UserAccessTypeTableMap::COL_ID, $userAccessType->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \UserAccessType object * * @param \UserAccessType|ObjectCollection $userAccessType 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 ChildUserAccessQuery The current query, for fluid interface */ public function filterByUserAccessType($userAccessType, $comparison = null) { if ($userAccessType instanceof \UserAccessType) { return $this->addUsingAlias(UserAccessTableMap::COL_USER_ACCESS_TYPE_ID, $userAccessType->getId(), $comparison); } elseif ($userAccessType instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(UserAccessTableMap::COL_USER_ACCESS_TYPE_ID, $userAccessType->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByUserAccessType() only accepts arguments of type \\UserAccessType or Collection'); } }