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 symfony2 tag for general Symfony 2.x questions.
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…
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…
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…
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…
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…
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…
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…
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":…
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] …
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()
…
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…
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…
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…
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…
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…