Commit fc2d79ef authored by erleibiazzio's avatar erleibiazzio
Browse files

implementa db-update que recria as revisões da oportunidade 156

parent 3be022fb
......@@ -9,6 +9,18 @@ return [
$query = $app->em->createQuery($dql);
$ids = $query->getResult();
foreach($ids as $id){
$evaluation = $app->repo("RegistrationEvaluation")->find($id['id']);
if(!$evaluation->getRevisions()){
$evaluation->_newCreatedRevision();
}
}
},
'DB Update para criação de revisão Oportunidade 156' => function () use ($app, $em, $conn) {
$dql = "SELECT re.id FROM MapasCulturais\\Entities\\RegistrationEvaluation re WHERE re.registration in (select r.id from MapasCulturais\\Entities\\Registration r WHERE r.opportunity = 156) ";
$query = $app->em->createQuery($dql);
$ids = $query->getResult();
foreach($ids as $id){
$evaluation = $app->repo("RegistrationEvaluation")->find($id['id']);
if(!$evaluation->getRevisions()){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment