/**
  * Returns the number of related типытехникимтр objects.
  *
  * @param      Criteria $criteria
  * @param      boolean $distinct
  * @param      ConnectionInterface $con
  * @return int             Count of related типытехникимтр objects.
  * @throws PropelException
  */
 public function countтипытехникимтрs(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
 {
     $partial = $this->collтипытехникимтрsPartial && !$this->isNew();
     if (null === $this->collтипытехникимтрs || null !== $criteria || $partial) {
         if ($this->isNew() && null === $this->collтипытехникимтрs) {
             return 0;
         }
         if ($partial && !$criteria) {
             return count($this->getтипытехникимтрs());
         }
         $query = ChildтипытехникимтрQuery::create(null, $criteria);
         if ($distinct) {
             $query->distinct();
         }
         return $query->filterByотображаемыетипытехникимтр($this)->count($con);
     }
     return count($this->collтипытехникимтрs);
 }
 /**
  * Get the associated Childтипытехникимтр object
  *
  * @param  ConnectionInterface $con Optional Connection object.
  * @return Childтипытехникимтр The associated Childтипытехникимтр object.
  * @throws PropelException
  */
 public function getтипытехникимтр(ConnectionInterface $con = null)
 {
     if ($this->aтипытехникимтр === null && $this->тип_техники !== null) {
         $this->aтипытехникимтр = ChildтипытехникимтрQuery::create()->findPk($this->тип_техники, $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->aтипытехникимтр->addмтрs($this);
            */
     }
     return $this->aтипытехникимтр;
 }
 /**
  * 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 = ChildтипытехникимтрQuery::create();
     $criteria->add(типытехникимтрTableMap::COL_ID, $this->id);
     return $criteria;
 }
 /**
  * Returns a new ChildтипытехникимтрQuery object.
  *
  * @param     string $modelAlias The alias of a model in the query
  * @param     Criteria $criteria Optional Criteria to build the query from
  *
  * @return ChildтипытехникимтрQuery
  */
 public static function create($modelAlias = null, Criteria $criteria = null)
 {
     if ($criteria instanceof ChildтипытехникимтрQuery) {
         return $criteria;
     }
     $query = new ChildтипытехникимтрQuery();
     if (null !== $modelAlias) {
         $query->setModelAlias($modelAlias);
     }
     if ($criteria instanceof Criteria) {
         $query->mergeWith($criteria);
     }
     return $query;
 }