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