/**
  * 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;
 }
Exemple #2
0
 /**
  * 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);
     }
 }
Exemple #3
0
 /**
  * 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);
 }
Exemple #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 = ChildIssuesQuery::create();
     $criteria->add(IssuesTableMap::COL_ID, $this->id);
     return $criteria;
 }