/** * Exclude object from result * * @param ChildInput $input Object to remove from the list of results * * @return $this|ChildInputQuery The current query, for fluid interface */ public function prune($input = null) { if ($input) { $this->addUsingAlias(InputTableMap::COL_UUID, $input->getUuid(), Criteria::NOT_EQUAL); } return $this; }
/** * Declares an association between this object and a ChildInput object. * * @param ChildInput $v * @return $this|\Jalle19\StatusManager\Database\InputError The current object (for fluent API support) * @throws PropelException */ public function setInput(ChildInput $v = null) { if ($v === null) { $this->setInputUuid(NULL); } else { $this->setInputUuid($v->getUuid()); } $this->aInput = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildInput object, it will not be re-added. if ($v !== null) { $v->addInputError($this); } return $this; }
/** * Filter the query by a related \Jalle19\StatusManager\Database\Input object * * @param \Jalle19\StatusManager\Database\Input|ObjectCollection $input 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 ChildSubscriptionQuery The current query, for fluid interface */ public function filterByInput($input, $comparison = null) { if ($input instanceof \Jalle19\StatusManager\Database\Input) { return $this->addUsingAlias(SubscriptionTableMap::COL_INPUT_UUID, $input->getUuid(), $comparison); } elseif ($input instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(SubscriptionTableMap::COL_INPUT_UUID, $input->toKeyValue('PrimaryKey', 'Uuid'), $comparison); } else { throw new PropelException('filterByInput() only accepts arguments of type \\Jalle19\\StatusManager\\Database\\Input or Collection'); } }