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'm using jms serializer bundle to serialize the form errors in our work api.
From the user registration api we have a form built this way:
/**
* Creates the form fields
*
* @param FormBuilderInterface $builder The form builder
* @param array …
I've encountered problem after upgrading my Symfony from 2.1 to 2.2.
When runing all functional tests at once (notice this isn't happening when single tests are being run, no matter which) I get an error with infinity loop stucked at
PHP Fatal…
I used the FosUserBundle with Symfony2 (2.2) and the ORM Propel (1.6).
I recently updated my project (sf2.1 => 2.2) and I have FOSUser problem with exception:
UserQuery not found
BaseUser not found
After some searches around, I discover that the…
I'm trying to reverse generate some new entities in my application using --filter option to select only the new ones.
php app/console doctrine:mapping:convert yml ./src/MyProject/MyBundle/Resources/config/doctrine/metadata/orm --filter="NewTable"…
I have one table name Blog bellow is it's structure.
FieldName Type
Id int(5)
blog_title string(255)
blog_url string(255)
blog_desc text
image string(255)
tags string(255)
blog_created_at…
I'm new here and quite new to symfony 2.
I try to build an Entity 'MailProcess' that inherits from an Entity 'Process'. Here are my Entity definitions:
// src/MW/TodoBundle/Entity/Process.php
namespace MW\TodoBundle\Entity;
use Doctrine\ORM\Mapping…
Use case
I am learning Symfony2 and am creating a Table Tennis tracking app to learn the framework. I have configured my entities as follows.
Player 1..n Result n..1 Match
On my form I'd like to validate that the scores for a match are…
I am implementing the FOSUser module in my symfony i have created and configure all file as the tutorial.here is my config.yml file for mapping.
namespace Acme\UserBundle\Entity;
use FOS\UserBundle\Entity\User as BaseUser;
use…
i have a little problem and I really don't know why. I am printing a datetime variable in twig with |date() but it is allways printing the actual time.
for Debugging I put the following Code in my Template:
I'm developing a e-commerce system with customizable products. Each product may have some options that, for its part, may have one or many values selected by consumer. I can't use the variant approach due the high level of customization of my users…
How i can get field value from form builder?
My controller:
$region = new Region();
$region->setName('TEMP!!');
$formBuilder = $this->createFormBuilder(array('region' => $region));
$formBuilder->add('region', new RegionAjaxType);
And form…
I have a problem with my Symfony2.2 beta routes. (symfony-2-2-0-beta-1)
I use annoations routes like this:
@Route("/form/{id}", defaults={"id"=0}, requirements={"id"="\d+"});
And the error is:
An exception has been thrown during the rendering of a…
I have an old "2.2.*" symfony project which I will add some modifications.
As a first step:
1/ I made the necessary installation:
-/WampServer 3.2.6 - 64bit,
-/Composer version 2.2.18,
-/Windows 11 Pro
2/ I cloned the project in my "PC"
3/ command:…
I'm getting the error in ORM/Symfony:
[Semantical Error] line 0, col 73 near 'group = :groupId': Error:
Class ActGood\CommunityBundle\Entity\GroupReporting has no field or
association named group
My query is:
return $this->getEntityManager()
…
I run an app on Symfony2. Whenever I load a page or a controller, dev.log file get fill with thousands and thousands with these kind of lines :
[2017-10-12 15:26:08] event.DEBUG: Notified event "kernel.response" to listener…