/**
  * Filter the query by a related \App\Models\AdminCredential object
  *
  * @param \App\Models\AdminCredential|ObjectCollection $adminCredential the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildAdminCredentialGroupQuery The current query, for fluid interface
  */
 public function filterByAdminCredential($adminCredential, $comparison = null)
 {
     if ($adminCredential instanceof \App\Models\AdminCredential) {
         return $this->addUsingAlias(AdminCredentialGroupTableMap::COL_ID, $adminCredential->getGroupId(), $comparison);
     } elseif ($adminCredential instanceof ObjectCollection) {
         return $this->useAdminCredentialQuery()->filterByPrimaryKeys($adminCredential->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByAdminCredential() only accepts arguments of type \\App\\Models\\AdminCredential or Collection');
     }
 }
 /**
  * Filter the query by a related \App\Models\AdminCredential object
  *
  * @param \App\Models\AdminCredential|ObjectCollection $adminCredential 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 ChildAdminUserCredentialQuery The current query, for fluid interface
  */
 public function filterByAdminCredential($adminCredential, $comparison = null)
 {
     if ($adminCredential instanceof \App\Models\AdminCredential) {
         return $this->addUsingAlias(AdminUserCredentialTableMap::COL_ADMIN_CREDENTIAL_ID, $adminCredential->getId(), $comparison);
     } elseif ($adminCredential instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(AdminUserCredentialTableMap::COL_ADMIN_CREDENTIAL_ID, $adminCredential->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByAdminCredential() only accepts arguments of type \\App\\Models\\AdminCredential or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildAdminCredential $adminCredential Object to remove from the list of results
  *
  * @return $this|ChildAdminCredentialQuery The current query, for fluid interface
  */
 public function prune($adminCredential = null)
 {
     if ($adminCredential) {
         $this->addUsingAlias(AdminCredentialTableMap::COL_ID, $adminCredential->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
 /**
  * @param ChildAdminCredential $adminCredential The ChildAdminCredential object to add.
  */
 protected function doAddAdminCredential(ChildAdminCredential $adminCredential)
 {
     $this->collAdminCredentials[] = $adminCredential;
     $adminCredential->setAdminCredentialGroup($this);
 }
 /**
  * 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->aAdminCredential) {
         $this->aAdminCredential->removeAdminUserCredential($this);
     }
     if (null !== $this->aAdminUser) {
         $this->aAdminUser->removeAdminUserCredential($this);
     }
     $this->admin_user_id = null;
     $this->admin_credential_id = null;
     $this->perm_read = null;
     $this->perm_write = null;
     $this->perm_exec = null;
     $this->created_at = null;
     $this->updated_at = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }