/** * Get the associated Designation object * * @param PropelPDO Optional Connection object. * @return Designation The associated Designation object. * @throws PropelException */ public function getDesignation(PropelPDO $con = null) { if ($this->aDesignation === null && $this->designation_id !== null) { $c = new Criteria(DesignationPeer::DATABASE_NAME); $c->add(DesignationPeer::ID, $this->designation_id); $this->aDesignation = DesignationPeer::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->aDesignation->addEmployees($this); */ } return $this->aDesignation; }