Questions tagged as 'doctrine'

0
answers

Use order by field Doctrine symfony 3

Is it possible to use ORDER BY Field in a DQL query?     
asked by 10.04.2018 / 10:24
0
answers

API Error REST Slim

   Slim Application Error Type:   Doctrine \ DBAL \ Exception \ InvalidFieldNameException I have a REST API configured with Slim and Doctrine and I need to resolve this error. The error appears when I make an HTTP request from my routes.php...
asked by 12.04.2018 / 12:07
1
answer

Symfony the form does not save

I commented that I am developing a form in symfony 3.4, the form is rendered correctly and displayed on the screen. The problem happens when clicking on the input submit nothing happens when I should save in the database. The code to save what i...
asked by 22.03.2018 / 03:14
1
answer

Map an entity in symfony 4

Quetal, I have a problem and it was that before in symfony3 it was run in the console: php bin/console doctrine:mapping:import MiBundle yml and it generated and mapped a database entity but in symfony 4 the command in the console is always...
asked by 20.12.2017 / 22:51
0
answers

Doctrine and CodeIgniter 3 Does not recognize the class

Good morning everyone. I'm creating a project with Doctrine, the problem is when I try to do something like this: $message = $this->em->find('Entities\PdContact', 1); From the model, I get the following error:    Class 'Entities...
asked by 11.04.2017 / 16:53
1
answer

sonata product Bundle mapping fault

I am installing Sonata Ecommerce. After a lot of mistakes, I've had this one that I can not solve: [Mapping] FAIL - The entity-class 'Application\Sonata\ProductBundle\Entity\ProductCollection' mapping is invalid: * The association Application...
asked by 29.03.2017 / 09:54
3
answers

"Error: Class FrontEndBundle \ Entity \ BrandAuto has no association named id" in Symfony 3, when specifying an association in two entities

I have two entities MarcaAuto and ModeloAuto with the following definition: MarcaAuto <?php namespace FrontEndBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * MarcaAuto * * @ORM\Table(name="marcas_auto") * @ORM\Entity(repos...
asked by 20.02.2017 / 14:18
1
answer

how to create a field of a form in symfony that allows me to obtain an object of the identifier that comes in the request?

Good morning, My question is how to create a field of a form in symfony that allows me to obtain an object from the id that comes in the request ?, without showing me the error that "there are no extra fields". This is because they send me...
asked by 08.07.2016 / 19:04
0
answers

How to upload an image and / or file to the database with symfony2 and doctrine?

Good morning. My question is, how can I upload an image or a pdf file for example to the database, and then consult it to show it. I thank you in advance for your answers. public function newResidentAction(Request $request) { $req =...
asked by 05.07.2016 / 21:31