Skip to content

Comments

Imobiliaria2.0#54

Open
gleydsonop wants to merge 7 commits intohe--:imobiliaria2.0from
gleydsonop:imobiliaria2.0
Open

Imobiliaria2.0#54
gleydsonop wants to merge 7 commits intohe--:imobiliaria2.0from
gleydsonop:imobiliaria2.0

Conversation

@gleydsonop
Copy link

Itens implementados:
1-Criar ação do botao editar imóvel
2-Criar ação do botao deletar imóvel
3- Formatar o type de cadastro de imóveis
5- Criar seerviços e ações nos repositories para o Controller Imovel (salvar,editar, deletar)
8-Mapear Entidade ContratoLocação

$em = $this->getDoctrine()->getManager();
$em->persist($imovel);
$em->flush();
$this->imovelService->salvar($imovel);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ótimo, mas sempre é uma boa pratica não deixar código comentado, já que temos o git para vermos os historicos...


if ($form->isSubmitted()) {
$imovelParaEditar = $form->getData();
$this->imovelService->editar($imovelParaEditar);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bacana.

}


} No newline at end of file
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lembrar sempre das psrs e deixar uma linha embranco no fim do arquivo.

}


} No newline at end of file
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

faltou uma linha em branco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants