Ejemplo n.º 1
0
 /**
  * Get the associated ItemType object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     ItemType The associated ItemType object.
  * @throws     PropelException
  */
 public function getItemType(PropelPDO $con = null)
 {
     if ($this->aItemType === null && $this->item_type_id !== null) {
         $c = new Criteria(ItemTypePeer::DATABASE_NAME);
         $c->add(ItemTypePeer::ID, $this->item_type_id);
         $this->aItemType = ItemTypePeer::doSelectOne($c, $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->aItemType->addItems($this);
         		 */
     }
     return $this->aItemType;
 }