Questions tagged as 'doctrine'

1
answer

Relationship in doctrine

I have a problem that is analogous to the following situation: A car may or may not have a driver, ie a car may have a minimum of 0 and a maximum of 1 driver. A driver may or may not have a car, ie a driver can have a minimum of 0 and a ma...
asked by 17.07.2014 / 05:36
1
answer

Filter tables to be mapped by Doctrine from the EntityManager (without command line)

I'm developing a feature in my application that automatically map and generate entities. The problem is that the user can select the tables that he wants to map, so I must insert a filter with the name of the tables to be converted. To do thi...
asked by 17.07.2014 / 13:46
0
answers

Slim Framework and doctrine, problem to generate json

I'm building a API where I register animals and colors and get animals in return, I'm using Doctrine to treat entities and I've created a many-to-many relationship between animals and colors. /** * @Entity @Table(name="Animais")...
asked by 27.11.2018 / 19:17
1
answer

Finding null value with get in Doctrine Entity

Hi, how are you? I'm having a problem with NULL with Doctrine . What happens: I have some fields in a database table where I save some values for future validations, these fields are nullable = true . I'll give an example: Whe...
asked by 29.10.2018 / 18:00
0
answers

Events for Doctrine

Well, I have a question in doctrine, could anyone help me. I have 3 fields being (date delete, date change and date inclusion), however I have to work in a dynamic way with them not to be remounting the code, I am using the doctrine events me...
asked by 19.01.2018 / 17:13
1
answer

Is Doctrine ORM 2 not supported to work with VIEWS?

I created a View in the database and now I need to use it in the system, however I can not use it because Doctrine recognizes it as a table, the following error appears: Type: Doctrine\DBAL\Driver\Mysqli\MysqliException Message: Table 'emp...
asked by 27.10.2017 / 20:00
1
answer

How to use Filters in Doctrine?

I have the Entities I did in Doctrine, and I also have the DAOS, which is where those queries get. I have an API where the user can use Query Parameters as follows:    link The query returns everything but if user puts this parameter...
asked by 21.09.2017 / 14:46
1
answer

Laravel only informs current date

Hello, I am reporting in the construct of my entity the date as follows: Entity : public function __construct($fornecedor, $emissao, $vencimento) { $this->fornecedor = $fornecedor; $this->emissao = new \DateTime(); $thi...
asked by 20.04.2017 / 15:53
1
answer

Zend 2 "getServiceLocator" was not found

Every time I need to call Doctrine ORM I find the error    The plugin by the name "getServiceLocator" was not found in the plugin   manager Zend \ Mvc \ Controller \ PluginManager How do I fix it?     
asked by 13.04.2017 / 16:58
1
answer

Save user id automatically in entities with Doctrine

I use Doctrine 2 to map my system database. Most entities have a foreign key pointing to an "account" entity. When a user logs on to the system, I add his account id to a session variable. Next I add a SQLFilter in the Doctrine (bootstrap) se...
asked by 17.04.2017 / 21:12