Questions tagged as 'doctrine'

0
answers

PDO - Uncaught exception 'PDOException' with message 'could not find driver'

Hey people! I'm trying to set up a project in a Yosemite Mac environment. The project I plan to run works normally on an Ubuntu. I installed the PDO drive. In phpinfo it looks like this: PDO PDO support => enabled PDO drivers => my...
asked by 03.12.2015 / 13:34
0
answers

The "Types" model has no "Situation" relation

Oops, I'm trying to make a relationship between two tables but I'm getting that error back, above. I have no idea what's wrong. this is my YAML structure: Tipos_denuncias: connection: doctrine tableName: tipos_denuncias columns: situaca...
asked by 28.04.2015 / 19:17
0
answers

Doctrine loader Entity

When you upload the project, Doctrine can not load files from the Entity folder. bootstrap.php use Doctrine\ORM\Tools\Setup; use Doctrine\ORM\EntityManager; require_once __DIR__.'/../vendor/autoload.php'; require_once __DIR__.'/../config/...
asked by 13.05.2015 / 00:34
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
0
answers

Execute a block of execution (SQL Server) in Doctrine + ZF2

I need to execute a SQL execution block (SQL SERVER) on a Repository in Doctrine. My environment is with ZF2 + Doctrine 2. I've read a few things about ResultSetMapping in Doctrine, but I could not. Code: public function teste() {...
asked by 11.03.2015 / 16:29
1
answer

How to fetch data from another entity using Doctrine 2

I have two entities a Product (id, category_id, name) and another Category (id, name), in the product entity want to bring the name of the category by the category_id of the product table. Is there a way to do this with annotations?     
asked by 16.12.2014 / 19:52
1
answer

findBy () all records with two conditions

I'm trying to work with findBy() on an application made in Symfony2. I would like to put two conditions in FindBy or mix with Where if possible but I am not getting it. $properties = $em->getRepository('PropertyBundle:Property')->...
asked by 11.06.2015 / 15:17
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
1
answer

php function that calls return from another function

Hello, I'm new to PHP OO and Doctrine . I would like to return the value of a function inside another function. It's possible? Both are within the same class. Function that will receive the result: public function salvar(Request $reque...
asked by 20.04.2017 / 14:30
1
answer

How to create entities with compound key in doctrine?

I have a database that works with composite keys, and I'm implementing the use of the Laravel framework . This is my bank structure: I'm using doctrine as an ORM and found that I can not automatically generate the entities of the datab...
asked by 05.04.2017 / 16:19