public static function getParents() { $parents = array(); foreach (VSpecPeer::doSelect(new Criteria()) as $d) { if (count($d->getGradeSpecsRelatedByParent()) > 0) { $parents[] = $d->getId(); } } return $parents; }
public static function retrieveByPKs($pks, $con = null) { if ($con === null) { $con = Propel::getConnection(self::DATABASE_NAME); } $objs = null; if (empty($pks)) { $objs = array(); } else { $criteria = new Criteria(); $criteria->add(VSpecPeer::ID, $pks, Criteria::IN); $objs = VSpecPeer::doSelect($criteria, $con); } return $objs; }