Top "Symfony" questions

Symfony refers to both a PHP framework for building web applications as well as a set of components on which the framework is built.

How to access service container in symfony2 global helper function (service)?

This question started out with me not understanding why I couldn't pass variables to a symfony2 global helper function (service), …

php service symfony
Doctrine - A new entity was found through the relationship

since 2 weeks, we are having this problem while trying to flush new elements: CRITICAL: Doctrine\ORM\ORMInvalidArgumentException: A new entity …

symfony doctrine
Generating Entity Getters and Setters in Symfony / Doctrine ORM

I have the following ORM Symfony entity with only properties : <?php namespace Evr\HomeBundle\Entity; use Doctrine\ORM\Mapping …

symfony annotations doctrine getter-setter
Symfony 2: How do I check if a user is not logged in inside a template?

In Symfony 2 templates (using Twig), how can I effectively check whether a user is not logged in? I don't want …

symfony authentication twig symfony-2.1
How to get the _locale variable inside in a Symfony layout?

I'm working with Symfony 2 on a site which having 2 languages, and I want to change patterns of my routes depending …

templates layout routing translation symfony
Symfony 2 SQLSTATE[HY000] [2002] Connection refused Error

I get an error like database operations using Symfony2. SQLSTATE[HY000] [2002] Connection refused parameters.yml parameters: database_driver: pdo_mysql …

symfony pdo doctrine dbal
symfony2 rewrite rules .htaccess app.php

I uploaded my symfony2 project to server grove. The main page loads, but all the links are broken. I tried …

.htaccess symfony mod-rewrite
How to get the current logged User in a service

In Symfony 2.8/3.0, with our fancy new security components, how do I get the currently logged User (i.e. FOSUser) object …

symfony symfony-2.8
Doctrine 2 can't use nullable=false in manyToOne relation?

An User has one Package associated with it. Many users can refer to the same package. User cannot exists without …

symfony doctrine doctrine-orm
symfony2 doctrine allow null values?

So, I'm still REALLY new to symfony but i'm learning quickly... I created an entity and a crud (i forget …

symfony doctrine