/** * Get the associated NagiosDependency object * * @param PropelPDO Optional Connection object. * @return NagiosDependency The associated NagiosDependency object. * @throws PropelException */ public function getNagiosDependency(PropelPDO $con = null) { if ($this->aNagiosDependency === null && $this->dependency !== null) { $c = new Criteria(NagiosDependencyPeer::DATABASE_NAME); $c->add(NagiosDependencyPeer::ID, $this->dependency); $this->aNagiosDependency = NagiosDependencyPeer::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->aNagiosDependency->addNagiosDependencyTargets($this); */ } return $this->aNagiosDependency; }