Exemplo n.º 1
0
 /**
  * Get the associated ChildPlugins object
  *
  * @param  ConnectionInterface $con Optional Connection object.
  * @return ChildPlugins The associated ChildPlugins object.
  * @throws PropelException
  */
 public function getAllPlugin(ConnectionInterface $con = null)
 {
     if ($this->aAllPlugin === null && $this->_pluginid !== null) {
         $this->aAllPlugin = ChildPluginsQuery::create()->findPk($this->_pluginid, $con);
         /* The following can be used additionally to
               guarantee the related object contains a reference
               to this object.  This level of coupling may, however, be
               undesirable since it could result in an only partially populated collection
               in the referenced object.
               $this->aAllPlugin->addRIssuesAllplugins($this);
            */
     }
     return $this->aAllPlugin;
 }
Exemplo n.º 2
0
 /**
  * Gets the number of Plugins objects related by a many-to-many relationship
  * to the current object by way of the R_issues_xmlplugin cross-reference table.
  *
  * @param      Criteria $criteria Optional query object to filter the query
  * @param      boolean $distinct Set to true to force count distinct
  * @param      ConnectionInterface $con Optional connection object
  *
  * @return int the number of related Plugins objects
  */
 public function countXmlPlugins(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
 {
     $partial = $this->collXmlPluginsPartial && !$this->isNew();
     if (null === $this->collXmlPlugins || null !== $criteria || $partial) {
         if ($this->isNew() && null === $this->collXmlPlugins) {
             return 0;
         } else {
             if ($partial && !$criteria) {
                 return count($this->getXmlPlugins());
             }
             $query = ChildPluginsQuery::create(null, $criteria);
             if ($distinct) {
                 $query->distinct();
             }
             return $query->filterByXmlIssue($this)->count($con);
         }
     } else {
         return count($this->collXmlPlugins);
     }
 }
Exemplo n.º 3
0
 /**
  * Returns a new ChildPluginsQuery object.
  *
  * @param     string $modelAlias The alias of a model in the query
  * @param     Criteria $criteria Optional Criteria to build the query from
  *
  * @return ChildPluginsQuery
  */
 public static function create($modelAlias = null, Criteria $criteria = null)
 {
     if ($criteria instanceof ChildPluginsQuery) {
         return $criteria;
     }
     $query = new ChildPluginsQuery();
     if (null !== $modelAlias) {
         $query->setModelAlias($modelAlias);
     }
     if ($criteria instanceof Criteria) {
         $query->mergeWith($criteria);
     }
     return $query;
 }
Exemplo n.º 4
0
 /**
  * Builds a Criteria object containing the primary key for this object.
  *
  * Unlike buildCriteria() this method includes the primary key values regardless
  * of whether or not they have been modified.
  *
  * @throws LogicException if no primary key is defined
  *
  * @return Criteria The Criteria object containing value(s) for primary key(s).
  */
 public function buildPkeyCriteria()
 {
     $criteria = ChildPluginsQuery::create();
     $criteria->add(PluginsTableMap::COL_ID, $this->id);
     return $criteria;
 }