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

Read values from validation.yml

My problem should be pretty simple, yet I haven't found a solution. In Symfony 2.3, I validate forms using the built in validator. This works as expected. I would like to show the user the max. size for uploading a file but I don't want to hardcode…
Emanuel Oster
  • 1,296
  • 10
  • 21
0
votes
1 answer

Embedding forms - cart system

I'm trying to create a basic cart system using symfony2 I have the following Entities: Product Cart CartItem I can create the cart and add the products as cartItems, but I'm a little unsure of how to display them in terms of the actual cart, i.e. a…
user1970557
  • 515
  • 1
  • 9
  • 23
0
votes
1 answer

Handling composite keys in this model using Symfony2 and Doctrine2

I have a table stock: CREATE TABLE IF NOT EXISTS `stock` ( `product` VARCHAR(20) NOT NULL, `kcondition` TINYINT NOT NULL, `company` INT(11) NOT NULL, `status` INT(11) NOT NULL, `sku` VARCHAR(255) NULL, `unit` INT(11) NOT NULL, `width`…
Reynier
  • 2,420
  • 11
  • 51
  • 91
0
votes
1 answer

Is there any way in symfony2.3 version where I can convert all the yaml files in my project into xml?

I just started working on symfony2.3 and I just want to know from my experienced symfony2.3 developers that is there any way in symfony2.3 version where I can convert all the yaml files in my project into xml?
rohitcopyright
  • 362
  • 1
  • 2
  • 9
0
votes
1 answer

ServerAlias does not share session

I have configured my web server in this way: ServerName example.loc ServerAlias www.example.loc DocumentRoot /var/www/example/web AllowOverride All Order allow,deny Allow from…
Lughino
  • 4,060
  • 11
  • 31
  • 61
0
votes
1 answer

Symfony 2.3/2.4 Standalone Form Component

I am trying to use the Symfony 2.3 Form Standalone component to use outside of Symfony Framework. I tried the following url http://n.clavaud.free.fr/blog/index.php?article31/symfony2-standalone-form-component-tutorial in the above url code good but…
Ganesh
  • 64
  • 1
  • 7
0
votes
1 answer

Event Subscriber postUpdate query is not updated

I'm trying to compare data on the database before and after an upgrade, in order to perform the operations. Specifically: Association: Artist ManyToMany Soundtrack. When I remove an artist by a record soundtrack, I check if that artist has been…
Lughino
  • 4,060
  • 11
  • 31
  • 61
0
votes
2 answers

Right way to handle relations between entities in forms

I have a table stock which have relation 1:m with a table called warranty. I made this entity for stock table:
Reynier
  • 2,420
  • 11
  • 51
  • 91
0
votes
1 answer

Strange redirect after load successfully

I am getting a strange redirection after content load successful and I can't find what is causing this behavior so I ask for some help or tips around this problem. See this is the jQuery code I'm using: $(".sell-product").click(function() { var…
Reynier
  • 2,420
  • 11
  • 51
  • 91
0
votes
1 answer

Reference External Directory in Symfony

Situation I have a Base Symfony app which can be compared to an abstract class. I have multiple Customer Symfony apps, all based from the Base app. Customer apps are simple websites, each with different (read-only) data, themes, etc. Base app - does…
Jake Berger
  • 5,237
  • 1
  • 28
  • 22
0
votes
1 answer

Why most symfony2 thirdpary bundles use xml some yml and very few annotations for configuration?

Is it just for separation of concerns? Is there any other advantage? Do you know of any bundles that use annotations instead? Another thing to note is that symfony-standard uses yaml by default; This is also true for the cookbook.
d0001
  • 2,162
  • 3
  • 20
  • 46
0
votes
1 answer

ManyToMany nullable not allowed

I have a scenario like this: tracks ManyToMany instruments I create the form in this way: $builder ->add('instruments', 'entity_hidden', array( 'attr' => array('class' => 'one_req'), 'label'…
Lughino
  • 4,060
  • 11
  • 31
  • 61
0
votes
0 answers

Build queries dynamically to reduce the number of them

I explain the problem: I have a database structure as follows: Sound 0 to many Version Sound many to many Artists Version many to many Instruments Sound can have more Version but also can not have any. When I build the view, I call through a cycle…
Lughino
  • 4,060
  • 11
  • 31
  • 61
0
votes
0 answers

Symfony 2 form manipulate db query

I'm having some troubles with implementing a relational database schema with symfony 2.3.2 and doctrine. Thats's my structure: Details table has an one to many relation to seasons table Details table has an one to many relation to episodes…
DerZauberer
  • 595
  • 1
  • 4
  • 9
0
votes
1 answer

display login form inside firewall

I am implementing a simple authenticated area in any Symfony2 project. Nothing is hard about it, I do not use FOSUserBundle even if I could have, but this is not the problem anyway, my question is really pointing on the security scheme and…
Flo Schild
  • 5,104
  • 4
  • 40
  • 55