public function executeDocument() { $c = new Criteria(); $test_files = TestFilePeer::doSelect($c); $applicant = new TestApplicant(); $applicant_detail = new TestApplicantDetail(); $this->applicant = $applicant; $this->applicant_detail = $applicant_detail; $this->test_files = $test_files; }
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(TestFilePeer::ID, $pks, Criteria::IN); $objs = TestFilePeer::doSelect($criteria, $con); } return $objs; }