Questions tagged [symfony-3.2]

This is the Symfony 3.2.x specific tag. Use it in addition to the symfony3 tag if your question is specific to Symfony 3.2.x — not just 3.x.

Symfony is a PHP full-stack web framework developed and maintained by Sensio Labs.

Information

This tag is specific for the 3.2 version of Symfony. See the tag for general Symfony 3.x questions.

The 3.2.0 version was released on the 30th November 2016.

326 questions
3
votes
1 answer

Unrecognized option "assets" under "framework", symfony 3

can you help me to resolve this problem ? . I am trying to upload logo and when i type any command i get this exception in Symfony v 3.2.8 Unrecognized option "assets" under "framework" in config.yml @Route("/admin/logo",…
Onur Özkır
  • 559
  • 3
  • 12
3
votes
2 answers

Symfony3 doctrine Many-to-Many column not found on select

I'm begginer with Symfony and Doctrine and I have a problem with a many-to-many relationship. I have the next two entities, relationated with many-to-many. AppBundle/Entity/User.php /** * @ORM\ManyToMany(targetEntity="Team", mappedBy="user",…
RL83
  • 39
  • 8
3
votes
1 answer

Symfony 3 Form builder : block_name not working

In symfony documentation, it is said that we can redefine block_name for a better customisation but it doesn't seem to work. Here is what I tried : When declaring the collection $builder ->add('medias', CollectionType::class, array( …
Robouste
  • 3,020
  • 4
  • 33
  • 55
3
votes
1 answer

Symfony 3 API REST - Try Catch Exceptions to JSON response format

I create the api rest server with Symfony and these bundles FosRestBundle, jms/serializer-bundle, lexik/jwt-authentication-bundle. How can I send a clean json response format like this : Missing field "NotNullConstraintViolationException" …
csu
  • 385
  • 1
  • 7
  • 20
3
votes
1 answer

Symfony 3 passing object through redirects

I'm currently learning Symfony forms. And the code that I'm having trouble with isn't working the way I would like. What I'm trying to do is have a user submit data to my Default Controller, and is that data is valid, have it redirected to another…
Kaley36
  • 233
  • 9
  • 19
3
votes
1 answer

Symfony 3 Datafixtures using parameter.yml values

I'm using LDAP in my User data fixtures and I don't want to hardcode the LDAP login options. Initially, I tried this: $options = array( 'host' => '%ldap_host%', 'port' => '%ldap_port%', 'useSsl' => true, …
Darkstarone
  • 4,590
  • 8
  • 37
  • 74
3
votes
3 answers

Symfony / Doctrine Error: "Class 'FROM' is not defined." on getResult()

I'm developing my first symfony app andwhile trying to use the queryBuilder I've been struggling with an issue for a couple of hours. I'm trying to execute a SQL query and I get the following error: request.CRITICAL: Uncaught PHP Exception…
SMASHED
  • 466
  • 5
  • 9
2
votes
1 answer

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception

Heroku Log : > Incenteev\ParameterHandler\ScriptHandler::buildParameters Creating the "app/config/parameters.yml" file > Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap >…
symguy
  • 21
  • 1
  • 3
2
votes
0 answers

Upgrading Symfony project from 3.2 to 3.4

I am trying to upgrade Symfony on Windows 10 machine. Current version is 3.2. I've updated the composer.json package to "symfony/symfony": "3.4.*". Then I ran composer update symfony/symfony and got the following error message: The requested package…
Martin Dimitrov
  • 4,796
  • 5
  • 46
  • 62
2
votes
1 answer

php gearman worker function no synchronized with doctrine

I observed a strange behavior of my doctrine object. In my symfony project I'm using ORM with doctrine to save my data in a mysql database. This is working normal in the most situations. I'm also using gearman in my project, this is a framework that…
Ole
  • 161
  • 1
  • 3
  • 12
2
votes
1 answer

Access to entity manager in config.php

In app/config/config.php we can: $container->loadFromExtension('doctrine', array( 'dbal' => array( 'driver' => 'pdo_mysql', 'host' => '%database_host%', 'dbname' => '%database_name%', 'user' =>…
remgo
  • 23
  • 2
2
votes
1 answer

Symfony 3, ManyToOne relation in form

I have a few Entities and I try to setup relations between users and permissions. I want to have possibility to assign group of permissions to user, so I created entity User, GroupAssociationsUser, Permissions. I though that best way is to create…
mcgoo
  • 103
  • 3
  • 12
2
votes
0 answers

Symfony access_control regex with GET parameter

I'm trying to catch an url with GET parameters like /foo/bar?foobar=123 in the Symfony access_control (app/config/security.yml) and i'm unable to find a correct rule. Here are a few of my attempts: - { path: ^/foo/bar\?foobar=[0-9]+, roles: […
2
votes
1 answer

Make a list field editable when this field is a many_to_one type using in Sonata-project Symfony

My entity /** * @ORM\ManyToOne(targetEntity="Estat", inversedBy="temes") */ private $estat; public function setEstat(\Ncd\ForumBundle\Entity\Estat $estat = null) { $this->estat = $estat; return $this; } My admin protected function…
Oriol Planas
  • 107
  • 9
1 2
3
21 22