/** * Filter the query by a related \Jalle19\StatusManager\Database\Input object * * @param \Jalle19\StatusManager\Database\Input|ObjectCollection $input the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildInstanceQuery The current query, for fluid interface */ public function filterByInput($input, $comparison = null) { if ($input instanceof \Jalle19\StatusManager\Database\Input) { return $this->addUsingAlias(InstanceTableMap::COL_NAME, $input->getInstanceName(), $comparison); } elseif ($input instanceof ObjectCollection) { return $this->useInputQuery()->filterByPrimaryKeys($input->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByInput() only accepts arguments of type \\Jalle19\\StatusManager\\Database\\Input or Collection'); } }