/** * Get the associated Parts object * * @param PropelPDO Optional Connection object. * @return Parts The associated Parts object. * @throws PropelException */ public function getParts(PropelPDO $con = null) { if ($this->aParts === null && $this->part_id !== null) { $c = new Criteria(PartsPeer::DATABASE_NAME); $c->add(PartsPeer::ID, $this->part_id); $this->aParts = PartsPeer::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->aParts->addPhotoss($this); */ } return $this->aParts; }