/** * 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->aAdminCredentialGroup) { $this->aAdminCredentialGroup->removeAdminCredential($this); } $this->id = null; $this->group_id = null; $this->name = null; $this->title = null; $this->sequence = null; $this->created_at = null; $this->updated_at = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->applyDefaultValues(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Exclude object from result * * @param ChildAdminCredentialGroup $adminCredentialGroup Object to remove from the list of results * * @return $this|ChildAdminCredentialGroupQuery The current query, for fluid interface */ public function prune($adminCredentialGroup = null) { if ($adminCredentialGroup) { $this->addUsingAlias(AdminCredentialGroupTableMap::COL_ID, $adminCredentialGroup->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \App\Models\AdminCredentialGroup object * * @param \App\Models\AdminCredentialGroup|ObjectCollection $adminCredentialGroup 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 ChildAdminCredentialQuery The current query, for fluid interface */ public function filterByAdminCredentialGroup($adminCredentialGroup, $comparison = null) { if ($adminCredentialGroup instanceof \App\Models\AdminCredentialGroup) { return $this->addUsingAlias(AdminCredentialTableMap::COL_GROUP_ID, $adminCredentialGroup->getId(), $comparison); } elseif ($adminCredentialGroup instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(AdminCredentialTableMap::COL_GROUP_ID, $adminCredentialGroup->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByAdminCredentialGroup() only accepts arguments of type \\App\\Models\\AdminCredentialGroup or Collection'); } }