/** * Get the associated ContactType object * * @param PropelPDO Optional Connection object. * @return ContactType The associated ContactType object. * @throws PropelException */ public function getContactType(PropelPDO $con = null) { if ($this->aContactType === null && $this->contact_type_id !== null) { $c = new Criteria(ContactTypePeer::DATABASE_NAME); $c->add(ContactTypePeer::ID, $this->contact_type_id); $this->aContactType = ContactTypePeer::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->aContactType->addContacts($this); */ } return $this->aContactType; }