Ejemplo n.º 1
0
 /**
  * @afterClass
  */
 public static function tearDownAfterClass()
 {
     \ResponsesQuery::create()->deleteAll();
     \ExpertQuestionStateQuery::create()->deleteAll();
     \ExpertGroupMembersQuery::create()->deleteAll();
     \ExpertGroupQuery::create()->deleteAll();
     \ExpertsQuery::create()->deleteAll();
     \QuestionsQuery::create()->deleteAll();
 }
Ejemplo n.º 2
0
 private function findExperts($socCode)
 {
     $groups = ExpertGroupQuery::create()->findBySocCode($socCode);
     $result = new ObjectCollection();
     foreach ($groups as $group) {
         $experts = \ExpertGroupMembersQuery::create()->findByGroupName($group->getGroupName());
         foreach ($experts as $expert) {
             $result->push($expert);
         }
     }
     return $result;
 }