Questions tagged [symfony-2.3]

This is the Symfony 2.3.x specific tag. Use it in addition to the symfony2 tag if your question is specific to Symfony 2.3.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.3 version of Symfony, which was released on the 3 June 2013 as the first LTS version of Symfony. See the tag for general Symfony 2.x questions.

As of 11 June 2013, the latest stable release of Symfony 2.3 is version 2.3.1.

Living on the edge

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

Useful links

771 questions
4
votes
2 answers

Symfony2 How to get the selected value from a select field with twig

I have a form that has some bootstrap nav-tabs and I need to repeat in every nav-tabs some info that I have preloaded from a select type field. I can access to the Id with {{ dump(form.proveedor.vars.value) }} But I need the selected label value.…
Rodolfo Velasco
  • 845
  • 2
  • 12
  • 27
4
votes
1 answer

How to not boot all bundles?

I have a symfony2 application which consist of a site, with many games. So I have created a CoreBundle (the site), and a bundle for every games which interact with the core. Games bundle interact with the core (update player score), and the core…
Alcalyn
  • 1,531
  • 14
  • 25
4
votes
1 answer

Create channel and write channel's logs into other file

I created channel into service container tags in services.yml parameters: restApiClass: "Telnet\ApiBundle\Services\RestApi" services: restApi: class: "%restApiClass%" arguments: [@logger] tags: …
Neka
  • 1,574
  • 4
  • 22
  • 36
4
votes
1 answer

Symfony assetic with named assets, dumped twice in prod environment?

Assetic management is the hardest part to understand IMHO, even after playing a year or more with Symfony. Anyways, I was experimenting with named assets: assets: mybundle_front_js: inputs: -…
gremo
  • 47,186
  • 75
  • 257
  • 421
4
votes
1 answer

show/hide some menus depend on the Sonata admin ROLE

I'm working on a web project using Symfony2 , and i used Sonata Admin for the admin Panel , every thing works fine but what i want to do is ,on the dashboard menus of sonata Admin , i need to show hide some menus depend on the admin ROLE , so did…
user2353899
4
votes
3 answers

valid constraint does not support group options in symfony2

I need to cascade validation in symfony2 form unless for specified group. here symfony team told that group option is not supported in Valid constraint https://github.com/symfony/symfony/issues/4893 How to do it ? Details: I have a User Entity has…
skonsoft
  • 1,786
  • 5
  • 22
  • 43
4
votes
1 answer

Symfony2 - Pass data between events

What I need I must build a module that allows input of very simple pay stubs. The classes representing this are PayStub and Detail, which are POPO and persistent. Moreover, the Details must be balanced against the Fees, which in turn is a class that…
Carlos Vergara
  • 3,592
  • 4
  • 31
  • 56
4
votes
2 answers

How to update sylius/standard

I have installed sylius with composer create-project -s dev sylius/sylius cd sylius app/console sylius:install I have added my own Bundle which extends SyliusWebBundle and some other things. Of course I have change parameters.yml etc. How can I…
Tom
  • 1,203
  • 3
  • 15
  • 35
4
votes
1 answer

issue with sonata admin + a2lix + gedmo translatable

I'm trying to use sonata admin + a2lix + gedmo translatable to translate my entities. Unfortunately it doesn't work, because I expect to see my translatable fields in the form, while in my backend I can see this "field - content" : I've followed…
satboy78
  • 217
  • 1
  • 5
  • 14
4
votes
3 answers

Dropdown Ajax onchange SonataAdminBundle Symfony2 Issue

I am trying to implement onchange dropdown in SonataAdminBundle. My Entity is like class BuilderHomePage { /** * @var integer * * @ORM\Column(name="id", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") …
Aman Varshney
  • 820
  • 1
  • 9
  • 26
4
votes
4 answers

Symfony 2: How to render date field without a day?

I'm trying to build form with date field, where user can pick a month and year only (without day of month), but i can't figure out how to achieve this. public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add( …
Andrey Kryukov
  • 765
  • 1
  • 10
  • 23
4
votes
0 answers

Capifony - task "symfony:cache:warmup" fails in prod environment without error message

I use capifony with symfony 2. My deploy.rb set :application, "Name project" set :domain, "My Ip" set :deploy_to, "My folder" set :app_path, "app" set :repository, "git@bitbucket.org:dou/test.git" set :scm, :git # Or: `accurev`,…
denys281
  • 2,004
  • 2
  • 19
  • 38
4
votes
3 answers

Symfony2 validation groups and mapping

For now I've successful used validation groups, but now I'm stuck with validation groups and nested mapped entities. I'll explain the problem by a simplified example. My entities: Address, Damage, Appliance /** * @ORM\Entity() */ class Address…
jayv
  • 495
  • 4
  • 13
4
votes
1 answer

Activate StringLoader Twig Extension in Symfony

I'm trying to active the Twig StringLoader Extension in a Symfony 2.3 project but just can't get the yaml-syntax right. This post refers to the answer by Heyflynn on a post dealing with the exact same problem but providing a solution that just does…
user2900170
  • 75
  • 2
  • 5
4
votes
4 answers

Symfony2 - How to customize the select option labels for the entity field type when using the query_builder?

When i create an entity field in Symfony2, how i can specify the value of the select option-field generated ? This is the snippet of my entity field: ->add('preferred_language', 'entity', array( 'mapped' => false, 'property' => 'name', …
Roberto Rizzi
  • 1,525
  • 5
  • 26
  • 39