Questions tagged [symfony-2.2]

This is the Symfony 2.2.x specific tag. Use it in addition to the symfony2 tag if your question is specific to Symfony 2.2.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.2 version of Symfony, which has been released on the 1 March 2013. See the tag for general Symfony 2.x questions.

As of 19 June 2013, the latest stable release of Symfony 2.2 is version 2.2.3.

Living on the edge

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

Useful links

190 questions
1
vote
1 answer

sonata admin : Add button for comments

I am working with Symfony 2 and sonata admin bundle. I have an entity "affaire", all users (admin, employee, ect) can add "comments" What I want to be able to do is to have a button in the list of affaire (in every row) that says 'comment' for…
KawtarHB
  • 179
  • 2
  • 2
  • 6
1
vote
1 answer

File Uploads with Doctrine

I am trying to upload files with Doctrine in Symfony2. I followed all the steps in this tutorial tutorial but whene I submit my form I get no errors but the file is not uploaded and the path in the table "document" is null. This is my…
2dar
  • 611
  • 2
  • 9
  • 22
1
vote
1 answer

Symfony Form component element naming and javascript access

To change attribute values of form elements I'm using a javascript that accesses them thanks to their name attribute. The form component of Symfony2.2 is generating an automatic name value made of the return value of getName() function and the name…
Nitseg
  • 1,267
  • 1
  • 12
  • 21
1
vote
3 answers

Upgrading Symfony 2.2 to 2.3 causes silent 500 errors

I just upgraded my Symfony 2.2 installation to Symfony 2.3. I was abe to get "composer update" to run with no errors, but this has caused every route in my application to return a blank page. If I check the network tab on my JavaScript console, I…
CaptainStiggz
  • 1,787
  • 6
  • 26
  • 50
1
vote
0 answers

knp_pagination_bundle - using routing instead of query parameters

I'm using knp_pagination_bundle, the newest version. I want to generate URLs like fooroute/page/3/sort/id/direction/desc Instead of default fooroute?sort=id&direction=desc&page=3 I need only help with configuring knp_pagination_bundle. I can do…
Cysioland
  • 1,126
  • 1
  • 9
  • 21
1
vote
1 answer

Symfony2 confirm form submission

I need to be able to do an operation on form data before it gets persisted to the database. The problem is, the operation can be risky and I need the user's consent each time. I'd like to do this through a confirmation form (with a little message…
dwieeb
  • 220
  • 3
  • 15
1
vote
2 answers

Container Dependecy Injection not working in Fixtures after upgrading symfony 2.0 to 2.1/2.2

I upgraded a project from Symfony 2.0 to 2.1. After that my tests stopped working. The problem is that I use fixtures which implement the ContainerAware interface. Now after the upgrade the setContainer() method does not get called anymore. I tried…
motteneder
  • 71
  • 4
1
vote
1 answer

Symfony2 install bundles with composer

I'm creating a site using the Symfony 2 and I have big problems with installing KnpMenuBundle. I read a lot about such problems. And I tried a lot of variants how to fix this. But nothing helps. This is my composer.json file: { "name":…
user2399112
  • 11
  • 2
  • 5
1
vote
1 answer

FileLoaderLoadException, Cannot import resource ... using FOSUserBundle

I use Symfony 2.2.1. and I'm trying to install FOSUserBundle. When I tried to create the database using php app/console doctrine:schema:create --force, the system display this error: [Symfony\Component\Config\Exception\FileLoaderLoadException] …
Taieb Baccouche
  • 217
  • 3
  • 7
  • 21
1
vote
1 answer

Lost column definitions with joins, in twig

I've got a query set up in doctrine that I'm confident does what it's supposed to...it joins several tables so we can skip a bunch of extra queries to get data through foreign keys: $posts = $this->getDoctrine()->getManager() …
mchitten
  • 392
  • 2
  • 9
1
vote
1 answer

Why does production environment return a 200 with empty body?

I have a web developed with Symfony 2.2.1. I developed it using the dev environment and it works great. The problem is when I try the production environment. I receive a 200 with empty body. My investigation: Symfony doesn't write nothing in the…
Brais Gabin
  • 5,827
  • 6
  • 57
  • 92
1
vote
1 answer

multiple input fields for related entities

I have a Symfony project with the Entities: PurchaseOrder, Article, Supplier. An order can have multiple articles and an order can have multiple suppliers. You can set the amount of each article through the ArticleOrderReference (Entity). I build a…
ChrisS
  • 736
  • 2
  • 8
  • 21
1
vote
0 answers

How do you use Compass with Symfony2.2 + Assetic

There are a bunch of questions related to Assetic and SASS or Compass, but nobody actually answers how to use Assetic with Compass and what the correct directory structure should be. How do I set up my asset directories to achieve full compass…
DMTintner
  • 14,405
  • 5
  • 35
  • 32
1
vote
1 answer

Symfony2 and composer issue: "Could not parse version constraint composer.phar..."

So I'm having issues trying to get composer to work again after installing the Sonata Admin Bundle on Symfony2. When using the command php composer.phar ...., I get the following error message: [UnexpectedValueException] Could not parse version…
Chewster
  • 25
  • 1
  • 4
1
vote
1 answer

Mapped Super Class Symfony2.2

I have created a Bundle (called MYBUNDLE) with just 2 entities: Menu and Group. Both were declared as mappedSuperclass because I need this bundle could be use for other projects. As a condition, projects will have to extend from these classes to…
user2288043
  • 241
  • 4
  • 15