Questions tagged as 'doctrine-2'

0
answers

How to implement query with union no doctrine 2

I have the following query and would like to know how to write it using doctrine 2 (dql): SELECT * FROM mtc.evt_event AS e INNER JOIN gen_category AS gc ON e.gen_category_id = gc.id WHERE EXISTS (SELECT * FROM evt_user_ticket_rel AS e...
asked by 19.11.2018 / 14:02
0
answers

How to implement the following template with Doctrine 2

I have the following database model: I'lldetailthereasonforsomepoints:Thecustomerisrelatedtothepersonasitcanbeanindividualorcorporateclient.Eachpersonmayormaynotbeassociatedwithanagency,astheideawouldbetodevelopthesysteminSaSformat,soeachagency...
asked by 30.10.2018 / 23:24
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

Logical deletion with Doctrine2

Is it possible to configure Doctrine so that it only works with logical exclusions? In single operations and cascade operations?     
asked by 14.09.2018 / 04:04
1
answer

Use DocQuery createQueryBuilder with tables that have no entity

Is it possible to query Doctrine's createQueryBuilder using a table that does not have an Entity? Example: In the code below table table2 (t2) does not have an entity created, because it is a relationship table and only has the relation field...
asked by 12.09.2018 / 02:27
0
answers

Doctrine insert multiple in relationship Many to Many

I have a simple system with 3 entities (Ocorrencia, Aluno and OcurênciaAluno), this third entity represents a Many to Many relationship between the first two. The Instance and Student entities are working perfectly, however when entering an occu...
asked by 13.07.2018 / 14:31
0
answers

Receive values from a ManytoMany table in Doctrine

I'm doing a PHP Rest API using doctrine as database manager, one of my tables has a'ManyToMany 'relation, and every time I do the get my'ManyToMany' column returns empty. As an API base I am using this water-sale code and using the Youtube...
asked by 11.04.2018 / 21:19
1
answer

json_array attribute empty while persisting in DB

Good Galeri. I have a curious problem when using DoctrineFixturesBundle. I have an Application class of type Entity Class that maps to the system table. In this class there is an attribute called options which is of type json_...
asked by 20.04.2018 / 02:11
0
answers

Validation PHP Entity

I use Doctrine and I have a question regarding validation of data set in the entity, should I validate the data before being inserted in the entity or outside it? /** * Seta e valida o nome. * @param string $name * @param strin...
asked by 24.03.2018 / 03:43
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