/** * Filter the query by a related \keeko\core\model\ActivityObject object * * @param \keeko\core\model\ActivityObject|ObjectCollection $activityObject 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 ChildActivityQuery The current query, for fluid interface */ public function filterByTarget($activityObject, $comparison = null) { if ($activityObject instanceof \keeko\core\model\ActivityObject) { return $this->addUsingAlias(ActivityTableMap::COL_TARGET_ID, $activityObject->getId(), $comparison); } elseif ($activityObject instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(ActivityTableMap::COL_TARGET_ID, $activityObject->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByTarget() only accepts arguments of type \\keeko\\core\\model\\ActivityObject or Collection'); } }