/** * This method return the actual SchoolYear, is actual if the STATE od the SchoolYear is true * * @return SchoolYear */ public static function retrieveCurrent() { $c = new Criteria(); $c->add(SchoolYearPeer::IS_ACTIVE, true, Criteria::EQUAL); return SchoolYearPeer::doSelectOne($c); }