/** * Get the associated Shop object * * @param PropelPDO Optional Connection object. * @return Shop The associated Shop object. * @throws PropelException */ public function getShop(PropelPDO $con = null) { if ($this->aShop === null && ($this->shop_id !== "" && $this->shop_id !== null)) { $this->aShop = ShopPeer::retrieveByPk($this->shop_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->aShop->addShopVitrins($this); */ } return $this->aShop; }