Ejemplo n.º 1
0
 /**
  * Get the associated Materialgeneric object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     Materialgeneric The associated Materialgeneric object.
  * @throws     PropelException
  */
 public function getMaterialgeneric(PropelPDO $con = null)
 {
     if ($this->aMaterialgeneric === null && $this->materialgeneric_idmaterialgeneric !== null) {
         $this->aMaterialgeneric = MaterialgenericPeer::retrieveByPk($this->materialgeneric_idmaterialgeneric);
         /* 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->aMaterialgeneric->addMaterials($this);
         		 */
     }
     return $this->aMaterialgeneric;
 }