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