Questions tagged as 'doctrine'

1
answer

Criteria query with expression contains in the field of a ManyToOne entity

Considering the two entities below: /** * @ORM\Table(name="cliente") * @ORM\Entity */ class Cliente { /** * @ORM\Column(name="id_cliente", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ priva...
asked by 27.08.2015 / 13:28
1
answer

Doctrine - One-To-Many Relationship

Good afternoon! I'm having a relationship with Doctrine and a question has come up. I have 2 tables in my database, the Log table and the table of Log details, where 1 log can contain multiple records referenced therein in the Log Details tab...
asked by 02.04.2015 / 21:41
1
answer

Self-relationship doctrine

I'm using Doctrine, and now I have the following problem. I'm doing a system registry, where it can have multiple "children" and their "children" can also have "children", and so on. How will I achieve this self-relationship with the doctr...
asked by 13.04.2015 / 15:17
1
answer

How to check if a table date is lower than today's date in Doctrine - Postgresql

I have to check if the user has registered an expiration date, if yes, check if that date is less than today if it is, it shows if it does not hide, I did so: $this->noticia = Doctrine::getTable('Noticias')->createQuery('s')...
asked by 27.03.2015 / 18:28
1
answer

Model Layer with DAO classes

I work with an MVC application that can be considered large or at least average, since it involves hundreds of functionalities and more than 400 MySQL database tables. As an ORM tool we adopt Doctrine through dependency injection, and we choose...
asked by 06.11.2014 / 11:48
1
answer

Doubt about sharing symfony bundle information

Create a static control for the menus, the purpose was for each Bundle to register its menu item. <?php namespace Test\RegisterBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Doctrine\Common\Collections\Ar...
asked by 11.07.2014 / 01:27
1
answer

Blameable behavior does not work on Symfony2

I'm implementing the Blameable behavior in Symfony2 using Gedmo\Mapping\Annotation . I was able to successfully implement Timestampable , but I can not implement Blameable . The problem in question is that I can not get...
asked by 17.03.2014 / 11:10
1
answer

Good Practices in APIS Rest Full with PHP and Doctrine ORM 2

Currently we have a system that uses Doctrine ORM2, we have our Entities, and our DAOS themes, within our DAOS classes we have several methods that we use to make queries, Change, Insert and Delete Data in the database. > We've created some pr...
asked by 19.09.2017 / 13:06
0
answers

UPDATE NO DOCTRINE-MODULE

In order to generate the map of the database I use this code: doctrine-module orm:convert:mapping --force --from-database --namespace="Application\Entity\" annotation C:\www\projetoBd\module\Application\src To generate the entities: doctr...
asked by 24.05.2016 / 02:54
2
answers

How to use store procedure with Doctrine

How do I use stored procedure with Doctrine? Should I use createNativeQuery?     
asked by 03.05.2016 / 15:36