/** * 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'); } }
/** * 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->aChampionship) { $this->aChampionship->removePlayer($this); } if (null !== $this->aAccount) { $this->aAccount->removeParticipations($this); } $this->id = null; $this->nr = null; $this->points = null; $this->extra_points = null; $this->total_points = null; $this->rank = null; $this->championship_id = null; $this->account_id = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }