Questions tagged as 'symfony-2'

1
answer

Symfony2 - Refresh field of one entity when executing action on Controller of another entity

I need to update the budget field of my Client entity when entering new data into the Budget table. Both have relation oneToMany and manyToOne , respectively. I received suggestions to use the OO concept to do this operation, so somethi...
asked by 08.09.2015 / 05:03
1
answer

Send the data from one table to another

And the following, I have an entity called Post where there is a post record and I have an entity called Machine. The objective is: Haveatableequaltowherewecreatedamachineandthebuttonswhereyouareviewingandeditinginsteadofthoseyouwillhavetoconver...
asked by 05.02.2015 / 18:30
1
answer

Conversion of parameters with Symfony2

Does anyone know of any elegant way to convert a parameter in symfony2 I know there is the ParamConverter Symfony2 but I do not use annotations. Any alternative?     
asked by 18.08.2014 / 19:10
1
answer

Symfony2 / Doctrine - Query join with three different entities

The way below works correctly: $qb->select('partial t.{id,nsu,status,message}, partial u.{id,shortName,email} as user') ->from('GatewayBundle:Transaction', 't') ->join('GatewayBundle:User', 'u') ->where('u.id = t.user');...
asked by 16.06.2014 / 19:40
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
0
answers

How to set information in the cookie within a Symfony2 controller

I need to set some information in the cookie when a new user creates their registration in the system. The registration form is this: Ihavethefollowingcontroller: <?php /** * Exibe o convite para usuários anônimos. * @Route("/aceita...
asked by 01.11.2017 / 21:10
1
answer

Symfony Single id is not allowed on composite primary key in entity

I have a view, where I mapped 3 fields as the primary key and 2 of those fields are foreign keys As below: /** * @var NotaFiscal * @ORM\Id * @ORM\ManyToOne(targetEntity="NotaFiscal", inversedBy="itens") * @ORM\JoinColumn...
asked by 24.10.2017 / 14:20
0
answers

Symfony2.16 doubts

I'm working with symfony2.16 I want to select the person if this is not a foreign key in the user table my code is like this:    public function buildForm (FormBuilderInterface $ builder, array $ options)     { $idPessoa = $options['idPess...
asked by 11.07.2017 / 14:49
2
answers

Symfony - Working with images?

I need to create an image with php, I'd like to know if Simfony has any library or something already included in it to work with the GD / ImageMagick functions. I've been searching and seen "LiipImagineBundle", but it seems to me very limited, f...
asked by 09.01.2017 / 18:44
0
answers

Login with CPF in FOSUserBundle [closed]

The FOSUserBundle by default connects to email or username and password. But I want to change to CPF and password. I created CpfProvider, I overwritten some classes, however I'm having to overwrite the entire FOSUserBundle to work.     
asked by 10.01.2017 / 21:04