Beispiel #1
0
 /**
  * Get the associated LogMessageType object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     LogMessageType The associated LogMessageType object.
  * @throws     PropelException
  */
 public function getMessageType(PropelPDO $con = null)
 {
     if ($this->aMessageType === null && $this->log_message_type_id !== null) {
         $c = new Criteria(LogMessageTypePeer::DATABASE_NAME);
         $c->add(LogMessageTypePeer::ID, $this->log_message_type_id);
         $this->aMessageType = LogMessageTypePeer::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->aMessageType->addLogs($this);
         		 */
     }
     return $this->aMessageType;
 }