Questions tagged as 'doctrine-2'

1
answer

Symfony Single id is not allowed on composite primary key in entity

I have a view, where I mapped 3 fields as the primary key and 2 of those fields are foreign keys As below: /** * @var NotaFiscal * @ORM\Id * @ORM\ManyToOne(targetEntity="NotaFiscal", inversedBy="itens") * @ORM\JoinColumn...
asked by 24.10.2017 / 14:20
0
answers

Doctrine, error generating proxy

I would like some help, I'm getting this error from time to time, I've researched a lot, but nothing to help me solve. As I said this error is not always returned. In this application I'm using slim 3 and doctrine.    Warning: rename (arq.php...
asked by 19.01.2017 / 01:27
0
answers

A plugin by the name "getServiceLocator" was not found in the plugin manager Zend \ Mvc \ Controller \ PluginManager

I recently started learning Zend Framework2 with AngularJS through a course of the School of Net. Given the course year, if I'm not mistaken it's 2013, some things have changed in both frameworks. So I encountered a problem using the following c...
asked by 01.09.2016 / 20:09
0
answers

Symfony2 - Only one field has its value read, the rest of this field is NULL when submitting form

I have two related tables: material and items_budget . The items_budget table has a form that has a field that lists the name of all the material in a group of checkbox , and next to each checkbox has two % fields, one for q...
asked by 21.09.2015 / 03:58
1
answer

Error instantiating 2 objects with doctrine entities (setter)

I can not do the 2 entities relationship and the following error is appearing: Catchable fatal error: Argument 1 passed to Clientes\Entity\Clientes::setEstado() must be an instance of Estados, instance of Clientes\Entity\Estados given, called...
asked by 26.08.2015 / 22:44
1
answer

How to access the SQLs of the updates made by the Doctrine schema?

I have an application running on a server (production) that does not give access to ../vendor/bin/doctrine and therefore I can not run the commands, like orm:schema-tool:update , for example. I'm running the commands in my developme...
asked by 21.04.2015 / 03:20
1
answer

entity manager does not define issues with doctrine

I am having an error in doctrine when I try to generate entities and it sends me a message saying **[InvalidArgumentException] The helper "em" is not defined.** My configuration file is set this way // bootstrap.php //vamos c...
asked by 20.03.2015 / 21:21
1
answer

Convert SQL to DQL

Oops, I need to convert a SQL in DQL from Doctrine 2 if someone can help me. SELECT produtos.id, produtos.categoria_id, produtos.nome, produtos.descricao, produtos.valor, (SELECT group_concat(nome) FROM tags INNER JOIN produtos_tags ON...
asked by 26.01.2015 / 18:57
1
answer

Doubts in the creation of the relationship

Personal I have 2 classes, one call Venda and another ItensVenda . I need to create a relationship for: When I open a sale, I can see all the items in this sale. When I access an item from a sale I can see the data from the...
asked by 05.03.2015 / 01:34
1
answer

Doctrine - Access the $ entityManager variable created in bootstrap.php from within a Class

I am studying Doctrine and am adapting a project I had already developed in MVC to work with Doctrine. I'm having some questions on how to proceed with the $ entityManager variable I create in bootstrap.php to be accessed inside a Controller...
asked by 29.06.2014 / 22:57