Questions tagged [symfony-2.5]

This is the Symfony 2.5.x specific tag. Use it in addition to the symfony2 tag if your question is specific to Symfony 2.5.x — not just 2.x.

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

Information

This tag is specific for the 2.5 version of Symfony, which was released on the 1st June 2014. See the tag for general Symfony 2.x questions.

As of 1 June 2014, the latest stable release of Symfony 2.5 is version 2.5.0.

Living on the edge

There are a set of interesting links on the symfony blog about what's new in this version:

Useful links

152 questions
1
vote
1 answer

Symfony2 multiple embedded forms one to many update foreign key

Hello i have a problem with my multiple embedded form (one to many). One game have many prizes and one prize have many options. When i attemp to save this form get an error message SQLSTATE[23000]: Integrity constraint violation: 1048 Column…
1
vote
0 answers

Symfony-2.5 - Can't use access_control in security.yml for ROLE_ADMIN

here is my security.yml file security: access_denied_url: home encoders: Coupon\MainBundle\Entity\User: algorithm: sha512 iterations: 1 encode_as_base64: true role_hierarchy: …
Hayk Aramyan
  • 223
  • 3
  • 14
1
vote
2 answers

Doctrine annotation exception when using parse query in Symfony2

I'm trying to make an API Rest in Symfony2 using Parse as cloud database. If I try to retrieve the Parse users it works fine and returns the expected data. Local url example: http://www.foo.local/app_dev.php/getUsers/ Here is the code I use in the…
rfc1484
  • 9,441
  • 16
  • 72
  • 123
1
vote
2 answers

Handling multiple file uploads with Symfony Forms and Doctrine

Implemented downloading files over the documentation. But when i decided to use 'multiple', issue an error "Catchable Fatal Error: Argument 1 passed to Kulabuhov\MainBundle\Entity\Photo::setFile() must be an instance of…
volya pers
  • 71
  • 6
1
vote
0 answers

Why does data_class leads to LogicException?

I have a form type (field_type) which extends text and have a data_class. Passing an entity instance to the form via event listener leads to a LogicException: The form's view data is expected to be an instance of class Entity, but is a(n) string.…
CSchulz
  • 10,882
  • 11
  • 60
  • 114
1
vote
2 answers

How to inject additional service to the ExceptionListener?

I want to override the setTargetPath from the default ExceptionListener (documentation). But I need additional service to handle this. In my opinion there is only the way to override the service definition, copy it to my service definitions and…
CSchulz
  • 10,882
  • 11
  • 60
  • 114
1
vote
1 answer

Handling a complex Symfony2 form with multiple entities relationship

I have a form (still not finished and is missing many fields) that is handled as a wizard with steps, in which fields from multiple entities are handled. This is the form itself: public function buildForm(FormBuilderInterface $builder, array…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
1
vote
1 answer

Has anyone else encountered ExecutionContext error for annotation validation from symfony 2.4 to 2.5?

... must be an instance of Symfony/Component/Validator/ExecutionContext, instance of Symfony/Component/Validator/Context/LegacyExecutionContext given ...
MediaVince
  • 479
  • 1
  • 8
  • 13
1
vote
1 answer

Validation based on another field

I am new to this Symfony framework and ran into a dead end during implementation. I am required to validate new password and confirm password fields only if current password of the user is entered. I tried my best to understand the concept by…
Hasitha Shan
  • 2,900
  • 6
  • 42
  • 83
1
vote
3 answers

Integrating CKeditor to my symfony 2.5

I download the ckeditor and would like to integrate that in my website which is built using Symfony 2.5, reading from the documentation it seems that all third party code should go inside the vendordirectory but then what? is that all? if i put all…
Shairyar
  • 3,268
  • 7
  • 46
  • 86
1
vote
1 answer

Where to place Application bundles?

I have an application written with Symfony and want to merge some small bundles as part of that app. Regarding the quick Symfony2 bundle tour from Sonata, I need an ApplicationBundle. quick Symfony2 bundle tour: There are two types of bundles: …
CSchulz
  • 10,882
  • 11
  • 60
  • 114
1
vote
4 answers

Deploying Symfony 2.5.3 website to production server

I have been working on a website in development environment built on top of Symfony framework and now it is time to deploy it to live site, in development environment we run the command php app/console server:run to run the website but I am not sure…
Shairyar
  • 3,268
  • 7
  • 46
  • 86
1
vote
1 answer

Symfony2 - Using old external library without namespaces

Let me preface this by saying that I am normally not a PHP developer, and am a complete beginner when it comes to Symfony2. I was kind of thrown into this project, and we are on a pretty tight deadline. With that out of the way, here is my…
07kro
  • 23
  • 3
1
vote
1 answer

'FOS\UserBundle\FOSUserBundle' not found

in symfony 2.5 I want use FOSUserBundle, I do any steps in github and when try to update schema see this error Fatal error: Class 'FOS\UserBundle\FOSUserBundle' not found in /opt/lampp/htdocs/symfonyTest/app/AppKernel.php on line…
IT-Life
  • 33
  • 2
  • 5
1
vote
1 answer

How to expose a Twig Extension as service of a bundle?

I have written a small twig extension which deliever some functions. This extension is bundled and I want to expose it as service of the bundle, so I have created the services.yml: services: twig.job_action_extension: class:…
CSchulz
  • 10,882
  • 11
  • 60
  • 114