/** * Get the associated ChildInvTypes object * * @param ConnectionInterface $con Optional Connection object. * @return ChildInvTypes The associated ChildInvTypes object. * @throws PropelException */ public function getInvTypes(ConnectionInterface $con = null) { if ($this->aInvTypes === null && $this->typeid !== null) { $this->aInvTypes = ChildInvTypesQuery::create()->findPk($this->typeid, $con); // Because this foreign key represents a one-to-one relationship, we will create a bi-directional association. $this->aInvTypes->setInvMetaTypes($this); } return $this->aInvTypes; }