/** * 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->aAllIssue) { $this->aAllIssue->removeRIssuesAllplugin($this); } if (null !== $this->aAllPlugin) { $this->aAllPlugin->removeRIssuesAllplugin($this); } $this->_issueid = null; $this->_pluginid = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * 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'); } }
/** * 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; }