/**
  * Declares an association between this object and a ChildAdminCredentialGroup object.
  *
  * @param  ChildAdminCredentialGroup $v
  * @return $this|\App\Models\AdminCredential The current object (for fluent API support)
  * @throws PropelException
  */
 public function setAdminCredentialGroup(ChildAdminCredentialGroup $v = null)
 {
     if ($v === null) {
         $this->setGroupId(NULL);
     } else {
         $this->setGroupId($v->getId());
     }
     $this->aAdminCredentialGroup = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildAdminCredentialGroup object, it will not be re-added.
     if ($v !== null) {
         $v->addAdminCredential($this);
     }
     return $this;
 }
 /**
  * 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');
     }
 }