/** * Get the associated Publication object * * @param PropelPDO Optional Connection object. * @return Publication The associated Publication object. * @throws PropelException */ public function getPublication(PropelPDO $con = null) { if ($this->aPublication === null && $this->publication_id !== null) { $c = new Criteria(PublicationPeer::DATABASE_NAME); $c->add(PublicationPeer::ID, $this->publication_id); $this->aPublication = PublicationPeer::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->aPublication->addJobs($this); */ } return $this->aPublication; }