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.
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…
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…
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…
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…
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 =…
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…
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…
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…
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 =…
My form type looks like
class ApplicationFormType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$nurse = new Type\NurseType();
$builder
…
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…
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…
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…
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,…