Questions tagged as 'doctrine2'

0
answers

Save SQL array using Symfony2 and Doctrine

I have an array type column like this in an entity: @ORM\Column(name="acompanantes", type="array") public fuction setAcompanantes(array $acompanantes) { $this->acompanantes = $acompanantes; return $this; } public fuction getAcompan...
asked by 06.10.2017 / 15:11
1
answer

Doctrine form element + zf3 error message "No object manager was set"

I am using Doctrine to create a DoctrineModule \ Form \ Elemen \ ObjectSelect in my forms. But when calling it from the view it shows me this error: 'No object manager was set' ("No object manager has been established"). I rely on the DoctrineM...
asked by 28.09.2017 / 21:13
1
answer

Inheritance of entities in Symfony3

I am with a project in Symfony3 and in which I want to do inheritance between the entities by annotation yml. Would                          Property (Father), (Children) Housing and Garage I have three yml files: File 1 Ar\Soft\Alquiler...
asked by 15.03.2017 / 18:20
1
answer

CreateBuilder Doctrine2

Do you know any method of CreateBuilder (Doctrine), to read an array? Let me explain: class ExamplesRepository extends EntityRepository { public function FindArticulosPadresid($padre) { return $this->createQueryBuilder('seccion')...
asked by 21.10.2016 / 11:53
1
answer

send value to a trait from use of a class

I have a class Printer that uses a Trait called TagTrait . I want to send a value from the class that uses that trait so that the trait defines a relation of a table in doctrine according to what interests me. Example: c...
asked by 05.10.2016 / 12:39
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