Commit 0a3fa8c3 authored by erleibiazzio's avatar erleibiazzio
Browse files

Cria DB update para criar revisões da oportunidade 239

parent a2837916
......@@ -21,6 +21,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 239' => 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 = 239) ";
$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