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
0 answers

Symfony 2.3.4 NotFoundHttpException status 200 instead of 404 on prod

According to symfony2 documentation NotFoundHttpException should be caught by the framework and ultimately trigger a 404 response, but I'm just getting fatal error (Uncaught exception) with status 200 on prod environment. On the dev environment I…
radke
  • 41
  • 3
4
votes
1 answer

how to dynamically set cascade validation of form from controller

My form looks like this : class CpanelRetailerForm extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('name', 'text', array( 'attr' =>…
sonam
  • 3,720
  • 12
  • 45
  • 66
4
votes
1 answer

symfony2 test flashbag or session data

How do you test for FlashBag message? Tried this: public function testInvalidLogin() { $session = $this->client->getContainer()->get('session'); $crawler = $this->client->request('GET', '/login'); …
Viorel
  • 1,420
  • 1
  • 17
  • 27
4
votes
1 answer

Doctrine2 orphanRemoval ManyToMany only if there are no other records connected

My purpose is to remove the record in the entity artist only if there are no other records of the entity connected soundtrack. I tried with orphanRemoval in this way: Soundtrack.php /** * @Assert\NotBlank(message = "soundtrack.artists.blank") *…
Lughino
  • 4,060
  • 11
  • 31
  • 61
4
votes
3 answers

Symfony2 Forms BooleanToStringTransformer Issue

I have a boolean field that I've put in a form as a choice field (yes or no). I would get 0 or 1 without data transformer. I added a view BooleanToStringTransformer (which seemed reasonable) : $builder ->add( …
Nanocom
  • 3,696
  • 4
  • 31
  • 46
4
votes
0 answers

KnpPaginatorBundle sort on join query

I have a problem with the sort of bundle in question when I pass a join query customized. My main purpose is to reduce the queries run in when a pagination of 20 results, it performs more than 30 queries. But with a predefined query with joins other…
Lughino
  • 4,060
  • 11
  • 31
  • 61
4
votes
2 answers

Symfony 2.3 how do you group the buttons together in one form group?

Right now i have a FormType that contains the following: $builder->add('name','text') ->add('save','submit',array('label'=>'Save', 'attr'=>array('class'=>'btn btn-primary'))) ->add('reset','reset',array('label'=>'Reset Form',…
Chase
  • 9,289
  • 5
  • 51
  • 77
4
votes
1 answer

Symfony 2: The option "validation_constraint" does not exist

I have a very simple form without class. I made some items with constraint options but the form validation does not work. I've read several places (e.g here ) I can add a validation_constraint parameter which is a…
Laszlo Malina
  • 43
  • 1
  • 5
4
votes
1 answer

FOSOAuthServerBundle + HWIOAuthBundle Timeout after a hour 401

I'm user HWIOAuthBundle (let's call it MyClient) to connect to a Symfony 2.3.2 OAuth 2 server using FOSOAuthServerBundle (let's call it MyServer). I am able to connect and login and do the requests that I need to but I keep getting booted out of…
4
votes
2 answers

Error: "No route found for "GET /web/app_dev.php""

I have created a bundle using the command php app/console generate:bundle this add the bundle in /app/AppKernel.php and also in /app/config/routing.yml. If I try to access the URL http://devserver/web/app_dev.php/bank_homepage I got a 404 error. I…
Reynier
  • 2,420
  • 11
  • 51
  • 91
4
votes
1 answer

How to do a form in some steps in Symfony2 - Step Validation

I would like doing a form in some steps in Symfony2 (2.3 exactly), but when I try to do this, I get an error in my form. I have done the next: 1) I've created a class class MyClass { /** * @var integer * * @ORM\Column(name="id", type="integer") …
Airam
  • 2,048
  • 2
  • 18
  • 36
4
votes
1 answer

Symfony2 multi-level dynamic router

I have a current project that has to displays both defined pages with specific entities, what is very easy to manage with Symfony2, and content pages on different layouts, what is - I guess - a bit less common. I get in trouble trying to build the…
Flo Schild
  • 5,104
  • 4
  • 40
  • 55
4
votes
2 answers

Losing authenticated token in symfony

I have a problem with authenticating in symfony. Login_check authenticates user in database but after redirection to /dashboard which should be for authenticated user only, it seems that symfony is losing my token with user and role, replace it with…
user2551667
  • 41
  • 1
  • 3
4
votes
1 answer

Processing Query Strings?

Built an API using Symfony2, FOSRest and Doctrine. Given the following route: "GET /api/path/to/product" And the following parameters: [("vendorID", 10), ("destination", "tanzania"), ("type", "accommodation"), ("sort", "price", "ASC")] Using…
4
votes
4 answers

FOSUserBundle doesn't translate with trans_default_domain

I am setting up FOSUserBundle dev-master with Symfony 2.3 RC1 but translation is not working well. It comes by default with trans_default_domain in the templates In the login template. It doesn't with trans_default_domain {% trans_default_domain…
dextervip
  • 4,999
  • 16
  • 65
  • 93