/** * Get the associated PcBookkeepingType object * * @param PropelPDO Optional Connection object. * @return PcBookkeepingType The associated PcBookkeepingType object. * @throws PropelException */ public function getPcBookkeepingType(PropelPDO $con = null) { if ($this->aPcBookkeepingType === null && $this->type_id !== null) { $this->aPcBookkeepingType = PcBookkeepingTypePeer::retrieveByPk($this->type_id); /* 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->aPcBookkeepingType->addPcBookkeepingEntrys($this); */ } return $this->aPcBookkeepingType; }