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

Symfony 2.2: Change serialized form field name

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 …
alex88
  • 4,788
  • 4
  • 39
  • 60
1
vote
1 answer

Symfony functional tests give infinity loops after upgrading to 2.2

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…
1
vote
1 answer

FOSUserBundle Propel

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…
Lionel
  • 387
  • 3
  • 18
1
vote
0 answers

Symfony2.2 generate entities reversely existing one without primary key

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"…
K. Weber
  • 2,643
  • 5
  • 45
  • 77
1
vote
3 answers

symfony2 + doctrine insert value in doctrine

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…
Viraj.S
  • 305
  • 1
  • 8
  • 18
1
vote
1 answer

Symfony 2 class table inheritance fixture SQL error

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…
marc
  • 264
  • 1
  • 2
  • 17
1
vote
2 answers

How to validate two instances of the same entity?

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…
David Yell
  • 11,756
  • 13
  • 61
  • 100
1
vote
4 answers

symfony+Mapping error

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…
Viraj.S
  • 305
  • 1
  • 8
  • 18
1
vote
2 answers

Symfony 2 Twig |date() not working?

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:
{% debug…
Tny
  • 165
  • 4
  • 11
1
vote
1 answer

Complex data structure using only the Form component

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…
Marcos Passos
  • 400
  • 1
  • 3
  • 15
1
vote
1 answer

How get field value from form builder in Symfony 2.2

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…
ZhukV
  • 2,892
  • 6
  • 25
  • 36
1
vote
2 answers

Routing requirements 0

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…
PatrickB
  • 3,225
  • 5
  • 31
  • 55
0
votes
0 answers

Warning Symfony2.2.*: proc_open(): CreateProcess failed, error code - 267 "vendor\symfony\symfony\src\Symfony\Component\Process\Process.php" line 248

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:…
wiem khardani
  • 53
  • 1
  • 11
0
votes
0 answers

Symfony Semantical Error - has no field or association

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() …
heykatieben
  • 269
  • 2
  • 16
0
votes
2 answers

event.DEBUG, doctrine.DEBUG, security.DEBUG make dev.log file hugely big

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…
kabrice
  • 1,475
  • 6
  • 27
  • 51