Beispiel #1
0
 /**
  * Get the associated Material object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     Material The associated Material object.
  * @throws     PropelException
  */
 public function getMaterial(PropelPDO $con = null)
 {
     if ($this->aMaterial === null && $this->material_idmaterial !== null) {
         $this->aMaterial = MaterialPeer::retrieveByPk($this->material_idmaterial);
         /* 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->aMaterial->addCessiomaterials($this);
         		 */
     }
     return $this->aMaterial;
 }