/** * Filter the query by a related \Plugins object * * @param \Plugins|ObjectCollection $plugins 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 ChildRIssuesAllpluginQuery The current query, for fluid interface */ public function filterByAllPlugin($plugins, $comparison = null) { if ($plugins instanceof \Plugins) { return $this->addUsingAlias(RIssuesAllpluginTableMap::COL__PLUGINID, $plugins->getId(), $comparison); } elseif ($plugins instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(RIssuesAllpluginTableMap::COL__PLUGINID, $plugins->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByAllPlugin() only accepts arguments of type \\Plugins or Collection'); } }
/** * Declares an association between this object and a ChildPlugins object. * * @param ChildPlugins $v * @return $this|\RIssuesAllplugin The current object (for fluent API support) * @throws PropelException */ public function setAllPlugin(ChildPlugins $v = null) { if ($v === null) { $this->setPluginid(NULL); } else { $this->setPluginid($v->getId()); } $this->aAllPlugin = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildPlugins object, it will not be re-added. if ($v !== null) { $v->addRIssuesAllplugin($this); } return $this; }
/** * Exclude object from result * * @param ChildPlugins $plugins Object to remove from the list of results * * @return $this|ChildPluginsQuery The current query, for fluid interface */ public function prune($plugins = null) { if ($plugins) { $this->addUsingAlias(PluginsTableMap::COL_ID, $plugins->getId(), Criteria::NOT_EQUAL); } return $this; }