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
0
votes
1 answer

Open inviter Symfony2- artseld/openinviter-bundle

https://github.com/artseld/ArtseldOpeninviterBundle I cant install this bundle in my symfony 2.2. Problem 1 - The requested package artseld/openinviter-bundle could not be found in any version, there may be a typo in the package name. Potential…
ioppp
  • 25
  • 1
  • 6
0
votes
1 answer

Class not found in Symfony 2.2

I have a Symfony 2.2 project with just one app called "Xedef". Inside that app folder, I've created a Model directory with some classes in it. I was hoping I could just define a namespace for that classes as declaring the namespace as: namespace…
0
votes
1 answer

User Bundle on Symfony 2.2

I tried to install the FOSUserBundle on Symfony 2.2 without any success. I followed all the steps described here but always getting this error : MappingException: The class 'Acme\UserBundle\Entity\User' was not found in the chain configured…
user765060
  • 44
  • 7
0
votes
1 answer

Symfony 2.2 - Generate URL from route OR simply display URL

I'm developing a navigation system for Symfony 2. It's working really nicely so far. So far, there is a config file like so: # The menu name ... primary: # An item in the menu ... Home: enabled: 1 # Routes where the menu item…
Seer
  • 5,226
  • 5
  • 33
  • 55
0
votes
2 answers

Can't find any special indices: 2d (needs index), 2dsphere (needs index)

I'm trying to use GeoSpatial features of MongoDB. I have this Document:
Permana
  • 1,972
  • 2
  • 33
  • 51
0
votes
0 answers

Its possible detach a entity in a listener

I have a entity with a price property in a form. In a update i want cancel the changes for this entity. This is my code in preUpdate event listener: if($entityManager->contains($entity)) { $entityManager->detach($entity); $uow =…
Cristian Gonzales
  • 273
  • 1
  • 3
  • 10
0
votes
1 answer

Symfony 2.2 app.php redirects to localhost root

I'm developing Symfony2 projects on Mac OSX Mountain Lion. I started a new project with the latest 2.2.1 version. Everything works fine in the dev environment, but when I want to test the prod environment with app.php it redirects me automatically…
Johann
  • 748
  • 5
  • 17
0
votes
1 answer

Referencing bundles/controllers/files changed in Symfony2.2?

I understand this: http://symfony.com/doc/2.1/reference/configuration/twig.html (version 2.1) and how to reference a bundle for exception_controller: exception_controller: Symfony\Bundle\TwigBundle\Controller\ExceptionController::showAction But I…
user2143356
  • 5,467
  • 19
  • 51
  • 95
0
votes
1 answer

Upgrading Symfony 2.1 to 2.2: fragment sub-framework and locale handling broken

I've just upgraded from Symfony 2.1 to 2.2. I followed the instructions given here: http://symfony.com/blog/symfony-2-2-0 https://github.com/symfony/symfony/blob/2.2/UPGRADE-2.2.md All my code was working beautifully before, but now there is some…
ritter
  • 555
  • 4
  • 13
0
votes
1 answer

How do I add user id while creating/editing an item

I want to store user id of user who is creating/editing content into the database. I already created the entity. How to add the user field in my controller to entity What do I change at this point $entity = new Product(); $form =…
chirag7jain
  • 1,485
  • 3
  • 26
  • 43
0
votes
1 answer

Symfony2 set entity in form to be optional depending on checkbox

My form type looks like class ApplicationFormType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $nurse = new Type\NurseType(); $builder …
rabudde
  • 7,498
  • 6
  • 53
  • 91
0
votes
1 answer

Symfony2 custom authentication provider bad credentials

I'm implementing a custom authentication provider for using an external api following roughly the cookbook on the symfony website. It works almost everything correctly, the listener listens the login form properly, then it calls the authenticate…
originof
  • 795
  • 1
  • 7
  • 24
0
votes
2 answers

FormType default input value in same form

I have an Entity named Task and build a Symfony TaskType.php for the form. It is my aim to set the endDate datetime field by default to the input of the startDate datime field (which is required). I tried this, but it doesn't…
ChrisS
  • 736
  • 2
  • 8
  • 21
0
votes
1 answer

Access to Doctrine during Bundle Initialization

I have a Symfony2 bundle which I want to use database table which stores key value configuration parameters. I want to be able to load a query and cache it for a long time and be able to inject the configuration parameters into symfony2 service…
Ghassan Idriss
  • 2,120
  • 20
  • 16
0
votes
1 answer

query with dateformat in where clause in symfony2

when I run a query with date in where clause, following error is showed... [Syntax Error] line 0, col 129: Error: Expected known function, got 'DATE_FORMAT' the query is given below $query = $this->getEntityManager()->createQuery( "SELECT a.id,…
Tushar
  • 139
  • 1
  • 3
  • 12
1 2 3
12
13