/** * Get the associated ChildIssues object * * @param ConnectionInterface $con Optional Connection object. * @return ChildIssues The associated ChildIssues object. * @throws PropelException */ public function getAllIssue(ConnectionInterface $con = null) { if ($this->aAllIssue === null && $this->_issueid !== null) { $this->aAllIssue = ChildIssuesQuery::create()->findPk($this->_issueid, $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->aAllIssue->addRIssuesAllplugins($this); */ } return $this->aAllIssue; }
/** * Returns a new ChildIssuesQuery object. * * @param string $modelAlias The alias of a model in the query * @param Criteria $criteria Optional Criteria to build the query from * * @return ChildIssuesQuery */ public static function create($modelAlias = null, Criteria $criteria = null) { if ($criteria instanceof ChildIssuesQuery) { return $criteria; } $query = new ChildIssuesQuery(); if (null !== $modelAlias) { $query->setModelAlias($modelAlias); } if ($criteria instanceof Criteria) { $query->mergeWith($criteria); } return $query; }
/** * Gets the number of Issues objects related by a many-to-many relationship * to the current object by way of the R_rights_forissue 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 Issues objects */ public function countIssuess(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null) { $partial = $this->collIssuessPartial && !$this->isNew(); if (null === $this->collIssuess || null !== $criteria || $partial) { if ($this->isNew() && null === $this->collIssuess) { return 0; } else { if ($partial && !$criteria) { return count($this->getIssuess()); } $query = ChildIssuesQuery::create(null, $criteria); if ($distinct) { $query->distinct(); } return $query->filterByRights($this)->count($con); } } else { return count($this->collIssuess); } }
/** * If this collection has already been initialized with * an identical criteria, it returns the collection. * Otherwise if this Books is new, it will return * an empty collection; or if this Books has previously * been saved, it will retrieve related Issuess from storage. * * This method is protected by default in order to keep the public * api reasonable. You can provide public methods for those you * actually need in Books. * * @param Criteria $criteria optional Criteria object to narrow the query * @param ConnectionInterface $con optional connection object * @param string $joinBehavior optional join type to use (defaults to Criteria::LEFT_JOIN) * @return ObjectCollection|ChildIssues[] List of ChildIssues objects */ public function getIssuessJoinuserSysRef(Criteria $criteria = null, ConnectionInterface $con = null, $joinBehavior = Criteria::LEFT_JOIN) { $query = ChildIssuesQuery::create(null, $criteria); $query->joinWith('userSysRef', $joinBehavior); return $this->getIssuess($query, $con); }
/** * 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 = ChildIssuesQuery::create(); $criteria->add(IssuesTableMap::COL_ID, $this->id); return $criteria; }