/** * Get the associated BpmnDiagram object * * @param Connection Optional Connection object. * @return BpmnDiagram The associated BpmnDiagram object. * @throws PropelException */ public function getBpmnDiagram($con = null) { // include the related Peer class include_once 'classes/model/om/BaseBpmnDiagramPeer.php'; if ($this->aBpmnDiagram === null && ($this->dia_uid !== "" && $this->dia_uid !== null)) { $this->aBpmnDiagram = BpmnDiagramPeer::retrieveByPK($this->dia_uid, $con); /* The following can be used instead of the line above to guarantee the related object contains a reference to this object, but this level of coupling may be undesirable in many circumstances. As it can lead to a db query with many results that may never be used. $obj = BpmnDiagramPeer::retrieveByPK($this->dia_uid, $con); $obj->addBpmnDiagrams($this); */ } return $this->aBpmnDiagram; }