Questions tagged [symfony-3.2]

This is the Symfony 3.2.x specific tag. Use it in addition to the symfony3 tag if your question is specific to Symfony 3.2.x — not just 3.x.

Symfony is a PHP full-stack web framework developed and maintained by Sensio Labs.

Information

This tag is specific for the 3.2 version of Symfony. See the tag for general Symfony 3.x questions.

The 3.2.0 version was released on the 30th November 2016.

326 questions
0
votes
0 answers

Where should I put this query to access it from the entity?

I have two entities with relationship One Donacion Many Pajuelas. Now I have it in DonacionRepository as: public function getPajuelasReservadas($idDonacion) { $em = $this->getEntityManager(); $consulta =…
0
votes
2 answers

Saving the getEntityChangeSet() result in Doctrine EventListener

I need to create changelog in the API for user actions on entities. For example: User updates entity Licensor I need to catch the changes and save them in the database in different table. The first part I was able to do with Doctrine Event…
Robert
  • 19,800
  • 5
  • 55
  • 85
0
votes
1 answer

Change item ordering in sonata_type_model

In my Admin I'v defined this: protected function configureFormFields(FormMapper $formMapper) { $formMapper /* ... */ ->add('camps', 'sonata_type_model', array( 'btn_add' => false, //Specify a custom label …
0
votes
1 answer

symfony classes.map failed to open stream: No such file or directory

I get this error when I tried to deploy symfony in a Docker swarm node ContextErrorException in Kernel.php line 338: Warning: file_put_contents(/home/backend_microservice/private_webapp/var/cache/dev/classes.map): failed to open stream: No such file…
0
votes
1 answer

Composer doesn't upgrade Symfony from 3.2 to 3.3

I'm trying to upgrade my project to latest Symfony. The 3.1 to 3.2 was flawless. Now it's been a hour I'm trying to upgrade to 3.3 and I still do'nt have a clue why it doesn't happen. The strangest part is I don't have any error message when running…
Stéphane
  • 500
  • 5
  • 22
0
votes
2 answers

Access User Scores on Many-to-One Relationship using Symfony 3

I'm creating an app that keeps user scores in the database based on questions they solve. I have User, Problem and Submission entities. For all of them I have One-to-Many relationship from the User entity. The problem entity has the point field that…
akyayik
  • 664
  • 1
  • 8
  • 25
0
votes
1 answer

Symfony UserVoter gets current logged in User in place of User in the url

On an show user action, i want to check if the logged user has the right to see this user. So i created a UserVoter. But when I try to pass the user defined in the url to the Voter using annotation, I get the logged User using both $subject and…
0
votes
0 answers

User password is not updated : easyadminbundle

I'm using easyadmin and fosuserbundle. The problém that everytime i try to update(change) the user password , nothing is happen , the same old password still the same. I think maybe i miss some config . Config.yml easyadmin: Admin: …
famas23
  • 2,072
  • 4
  • 17
  • 53
0
votes
0 answers

How to change symfony Mode Using Php?

I want to change symfony mode without running any command line. It is possible if I use some php code and a button to change symfony mode automatically for anyone. Please Help. And i don't want try with below command: $ sudo chown master-chef -R…
Subhac05
  • 111
  • 1
  • 1
  • 3
0
votes
0 answers

Address memory limit with liipimaginebundle

I have a problem with image manipulation with liipimaginebundle on symfony. For images larger than 2MB i often get an out of memory error. This is the config in config.yml : liip_imagine: filter_sets: main_room_picture: …
jav974
  • 1,022
  • 10
  • 22
0
votes
3 answers

SonataAdmin Install issue

I trying to install SonataAdmin on my Symfony Project but at the end of the part-2 of the documention when i'm trying to go on "http://localhost:8000/admin/" I have a error : "You have requested a non-existent service "admin.category" in . (which is…
jpp28
  • 61
  • 1
  • 18
0
votes
1 answer

Symfony Sonata - How to show minutes format for datetime in listMapper?

I'm usinf Symfony 3.2.9 with Sonata-admin bundle. I've create this field in my Entity component: /** * @var \DateTime $verificat * * @ORM\Column(type="datetime", nullable=true) */ private $verificat; In his admin class there is this…
0
votes
1 answer

Symfony 3 - CollectionType only saves the first element

I have a very weird problem. I have an entity: Property It has a ManyToOne connection to pictures When I add more pictures for the form, when I save it only the first added picture saved, the rest is not. However, I can add new pictures after every…
0
votes
1 answer

PHP Doctrine with SQL Server Always On

I am developing an application using Symfony 3 (php 7.1) with SQL Server database with AlwaysOn. AlwaysOn is a SQL server support for high-availability and disaster recovery, and Doctrine 2 is not working well with this paradigm. I've developed a…
fabionvs
  • 197
  • 12
0
votes
1 answer

Symfony3 change form field type in the controller

I have a form builder which builds a form public function buildForm(FormBuilderInterface $builder, array $options) { $builder-> add('typeTask',TextType::class,array('label'=>"Вид заявка"))-> …
Pavlin Petkov
  • 1,022
  • 3
  • 17
  • 38