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
0
votes
1 answer

FOSUserBundle fetch data from the form in the listener

I'm trying to insert a data passed in the form (e-mail) in the response that I create in the listener to ensure that the response is a json object. I can not take the form data from 'event in any way .. There is a solution to what I want? public…
Lughino
  • 4,060
  • 11
  • 31
  • 61
0
votes
0 answers

Symfony create query causes PostgreSQL values to get null instead of default values

I have three tables in a PostgreSQL database where I run this queries: ALTER TABLE waccount ALTER COLUMN balance SET DEFAULT 0; ALTER TABLE waccount ALTER COLUMN created SET DEFAULT now(); ALTER TABLE waccount ALTER COLUMN modified SET DEFAULT…
Reynier
  • 2,420
  • 11
  • 51
  • 91
0
votes
2 answers

How do I insert the right path on form creation in Symfony2

I have this code in my template:
{{ form_widget(form) }}

And in my…
Reynier
  • 2,420
  • 11
  • 51
  • 91
0
votes
1 answer

How do I generate ID when I have composite keys in Doctrine?

I have a Entity with composite keys. See below: class BankAccount { /** * @ORM\Id * @ORM\Column(type="integer") * */ protected $bank; /** * @ORM\Id *…
Reynier
  • 2,420
  • 11
  • 51
  • 91
0
votes
2 answers

app.php not working in symfony2.3

I create a symfony 2.3 project. some times all the pages shows 500 error. app.php also shows error. i dont know why can any one help www.dotcue.in/sandp/web/app.php [HTTP/1.0 500 Internal Server Error 353ms]
user2511494
  • 1
  • 1
  • 2
0
votes
2 answers

Symfony: Cannot access a service inside bundle constructor

How can I access a service inside of a Bundle constructor? I'm trying to create a system where a theme bundle can register itself automatically with the theme service, see small example below (the simpler solution the better):
tirithen
  • 3,219
  • 11
  • 41
  • 65
0
votes
1 answer

Add variable to each twig template

How can I transfer variable to each twig template? I need transfer rates to each template in my application.
korvinko
  • 700
  • 3
  • 10
  • 23
0
votes
1 answer

Symfony2 project with VirtualHost doesn't work

I'm working on a Symfony2 project (using latest 2.3.2) and for that I made this virtual host: DocumentRoot /var/www/html/nnplat/web ServerName nnplat.devserver AllowOverride…
Reynier
  • 2,420
  • 11
  • 51
  • 91
0
votes
1 answer

Overriding an Entity setter

When a setFoo() method from entity Bar is called, I would like to accomplish some kind of logic like fetching object from the database. I'm thinking about creating a listener which handles that kind of logic but I would preferer to create a kind of…
peris
  • 943
  • 3
  • 20
  • 33
0
votes
2 answers

One-To-Many relationship not setting foreign key correctly in doctrine, what am I doing wrong?

I have 2 Entities /** * @ORM\Entity(repositoryClass="FLI\ContractBundle\Repository\CarrierFuelRepository") * @ORM\Table(name="carrier_fuel") */ class CarrierFuel { /** * @ORM\Column(name="id", type="integer", nullable=false) *…
Trololololol
  • 200
  • 4
  • 18
0
votes
1 answer

KnpDoctrineBehaviors, how to use Sluggable with Translatable

I use KnpDoctrineBehaviors (Sluggable,Translatable, etc ). Field that I use for slug, I have only in MyClassTranslations. So when I add Sluggable for my translations class, I have for each i18n entry different slug. How to solve this? Thank you!
denys281
  • 2,004
  • 2
  • 19
  • 38
0
votes
1 answer

SF2 Display form error without submit

I have create a identification form but an error message "Bad login" appears even without submit form. I use an account with the app/config/security.yml for check the form. My controller : public function loginAction() { $request =…
Kev
  • 171
  • 2
  • 19
0
votes
1 answer

Symfony 2 multiple bundles annotation type routing

I have a Symfony 2.3.1 application with two bundles. Each bundle contains Resources/config/routing.yml configuration file: mobile: resource: "@MyMobileBundle/Controller" type: annotation and admin: resource:…
Dmitry Sobolev
  • 927
  • 15
  • 18
0
votes
2 answers

Put underscore in class names of Symfony2 entity

I have actually finished a project using Symfony2, but my boss want that I change names of tables in the database. He wants to put underscore in the name of my tables, that means underscore in class names. I tried to do this but it doesn't work.…
Off
  • 189
  • 1
  • 2
  • 12
0
votes
1 answer

Strange behavior route

I'm trying to get this setup but I'm having problems: use lunetics locale bundle. the user accesses the site www.example.com, the bundle takes the user's locale and displays the page with its local, for example, if his place is the German you will…
user2126724