/** * Exclude object from result * * @param ChildAccount $account Object to remove from the list of results * * @return $this|ChildAccountQuery The current query, for fluid interface */ public function prune($account = null) { if ($account) { $this->addUsingAlias(AccountTableMap::COL_ID, $account->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \Haus23\Dtp\Model\Account object * * @param \Haus23\Dtp\Model\Account|ObjectCollection $account 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 ChildPlayerQuery The current query, for fluid interface */ public function filterByAccount($account, $comparison = null) { if ($account instanceof \Haus23\Dtp\Model\Account) { return $this->addUsingAlias(PlayerTableMap::COL_ACCOUNT_ID, $account->getId(), $comparison); } elseif ($account instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(PlayerTableMap::COL_ACCOUNT_ID, $account->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByAccount() only accepts arguments of type \\Haus23\\Dtp\\Model\\Account or Collection'); } }
/** * Declares an association between this object and a ChildAccount object. * * @param ChildAccount $v * @return $this|\Haus23\Dtp\Model\Player The current object (for fluent API support) * @throws PropelException */ public function setAccount(ChildAccount $v = null) { if ($v === null) { $this->setAccountId(NULL); } else { $this->setAccountId($v->getId()); } $this->aAccount = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildAccount object, it will not be re-added. if ($v !== null) { $v->addParticipations($this); } return $this; }