Exemplo n.º 1
0
 public function hasRatingData(PropelPDO $conn = null)
 {
     if ($conn === null) {
         $conn = Propel::getConnection();
     }
     $c = new Criteria();
     $c->add(AutoCourseRatingPeer::FIELD_ID, $this->getId());
     $result = AutoCourseRatingPeer::doSelectOne($c, $conn);
     if ($result === null || !is_object($result)) {
         return false;
     } else {
         return true;
     }
 }