Questions tagged as 'symfony2'

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

Login and register on Android with FOSUserBundle and OAuth2

Good! I'm making an application in Android . I already have my REST Api created in Symfony2 and now I want to do a register and login in Android using FOSUserBundle and OAuth2 . But I do not...
asked by 03.11.2016 / 11:03
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
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
0
answers

I have to clone a repository from GitLabs, someone knows how I can pass the login data in the URL

My app has to clone a pdf from gitLabs, the latter asks me for authentication data. Does anyone know how I can pass them on the URL or some bundle that takes care of that ??? Thanks     
asked by 17.03.2016 / 23:29
1
answer

how to call a web service type rest with symfony2 (php)?

How can I call a REST web service from my application? (it's made with symfony2).     
asked by 15.07.2016 / 15:21
1
answer

how to correctly configure Guzzle with symfony2?

Good morning. What I am trying to do is to have the client with php, so I decided to use this library (Guzzle), which allows me to consume web services type rest from php. I have already followed the documentation but I get this error:...
asked by 14.07.2016 / 23:27
2
answers

Error Call to a member function format () on string, In symfony form

I have the following form in symfony: ->add('horaI', ChoiceType::class, array( 'label' => 'Hora Inicio', 'placeholder' => 'Seleccione una hora', 'attr' => array( 'class' => 'form-name form-cont...
asked by 14.06.2017 / 18:47
3
answers

How to round a decimal value and display 0.50 instead of 0.5 in php

I want to round a value in my php project in such a way that instead of showing me for example 12.5 it shows me the zero of 50 (12.50)     
asked by 20.12.2018 / 15:45