/**
  * Declares an association between this object and a ChildAdminUser object.
  *
  * @param  ChildAdminUser $v
  * @return $this|\App\Models\AdminUserCredential The current object (for fluent API support)
  * @throws PropelException
  */
 public function setAdminUser(ChildAdminUser $v = null)
 {
     if ($v === null) {
         $this->setAdminUserId(NULL);
     } else {
         $this->setAdminUserId($v->getId());
     }
     $this->aAdminUser = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildAdminUser object, it will not be re-added.
     if ($v !== null) {
         $v->addAdminUserCredential($this);
     }
     return $this;
 }
 /**
  * Filter the query by a related \App\Models\AdminUser object
  *
  * @param \App\Models\AdminUser|ObjectCollection $adminUser 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 filterByAdminUser($adminUser, $comparison = null)
 {
     if ($adminUser instanceof \App\Models\AdminUser) {
         return $this->addUsingAlias(AdminUserCredentialTableMap::COL_ADMIN_USER_ID, $adminUser->getId(), $comparison);
     } elseif ($adminUser instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(AdminUserCredentialTableMap::COL_ADMIN_USER_ID, $adminUser->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByAdminUser() only accepts arguments of type \\App\\Models\\AdminUser or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildAdminUser $adminUser Object to remove from the list of results
  *
  * @return $this|ChildAdminUserQuery The current query, for fluid interface
  */
 public function prune($adminUser = null)
 {
     if ($adminUser) {
         $this->addUsingAlias(AdminUserTableMap::COL_ID, $adminUser->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }