/** * Get the associated Size object * * @param PropelPDO Optional Connection object. * @return Size The associated Size object. * @throws PropelException */ public function getSize(PropelPDO $con = null) { if ($this->aSize === null && $this->size_id !== null) { $c = new Criteria(SizePeer::DATABASE_NAME); $c->add(SizePeer::ID, $this->size_id); $this->aSize = SizePeer::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->aSize->addItems($this); */ } return $this->aSize; }