Exemple #1
0
 /**
  * Get the associated Courses object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     Courses The associated Courses object.
  * @throws     PropelException
  */
 public function getCourses(PropelPDO $con = null)
 {
     if ($this->aCourses === null && $this->course_id !== null) {
         $c = new Criteria(CoursesPeer::DATABASE_NAME);
         $c->add(CoursesPeer::ID, $this->course_id);
         $this->aCourses = CoursesPeer::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->aCourses->addUserQuestionTags($this);
         		 */
     }
     return $this->aCourses;
 }