symfony-3.3 Questions

2

Solved

Symfony v3.3.4, Doctrine ORM v2.5.6 I've created an event subscriber for a doctrine entity : AppBundle\EventListener\LivreSubscriber: tags: - { name: doctrine.event_subscriber } It works f...
Praise asked 27/7, 2017 at 14:17

4

Solved

While using Symfony 3.3, I am declaring a service like this: class TheService implements ContainerAwareInterface { use ContainerAwareTrait; ... } Inside each action where I need the EntityMana...
Stockbreeder asked 28/6, 2017 at 18:10

5

I have a problem. After command composer update I get error message [Symfony\Component\Console\Exception\LogicException] An option named "connection" already exists. Script Sensio\Bu...
Dacoity asked 15/3, 2021 at 19:47

2

In order to convert my french html accents I try to change encoding by doing this in Twig : {{ ddf.description | convert_encoding('UTF-8', 'HTML-ENTITIES') }} But here is the message I get : ...
Hallett asked 20/12, 2017 at 14:13

5

Solved

I'm developping an app under windows 10 + wamp + php 7 + Symfony 3.3 I'm trying to use the built-in server : php bin/console server:run [OK] Server listening on http://127.0.0.1:8000 // Quit the...
Handmaid asked 9/8, 2017 at 16:39

2

Solved

Whole error is missiong namespace Symfony\Component\Form which is replaced with 3 dots, due to title maximum characters. So, I am following the steps, that are presented in the docs and I'm unable...
Fahrenheit asked 13/6, 2017 at 18:16

4

Solved

I am moving a Symfony 3.2 project to Symfony 3.3 and I would like to use DI new features. I have read the docs but so far I can make this to work. See the following class definition: use Http\Adap...
Raddie asked 25/8, 2017 at 18:58

4

Solved

I have a bundle which is held in a private Satis repository as its entities and repositories are shared between multiple application. The rest of the applications that consume that bundle are Symf...

1

I have recently added a new database to my Symfony 3.3 application. Then my services with injected entity manager are no longer working and return the following error: Cannot autowire service "R...
Sightly asked 9/3, 2018 at 14:29

2

I have configured two connections to the database. One connection is called user and other is called client. This is the configuration in the config.yml file: doctrine: dbal: default_connection:...
Emrich asked 22/11, 2017 at 18:46

1

Solved

config.yml vich_uploader: db_driver: orm mappings: media_image: uri_prefix: '%uploads_dir%' upload_destination: '%kernel.root_dir%/../web/uploads/images' namer: Vich\UploaderBundle\Naming\Or...
Venial asked 25/1, 2018 at 11:13

1

Solved

I have a form to add a new prescriber in my database. The first step consists in informing the various informations about the prescriber. Then, I check if there are similar prescribers before addi...
Tolkan asked 5/12, 2017 at 9:48

2

Solved

I'm trying migrate to symfony 3.3 and use new feature autowire/autoconfigure services: So in services.yml i have: services: _defaults: autowire: true autoconfigure: true public: false # mak...
Ensoll asked 18/6, 2017 at 15:4

2

i'm using Symfony 3.3.9 and when I'm trying to render a form I have the following error: An exception has been thrown during the rendering of a template ("Unable to render the form because the ...
Storm asked 16/9, 2017 at 19:51

1

Solved

I want to share a cookie across any subdomain. This should then allow me to keep the session. I am using the Symfony framework version 3.0. I've read that you should set the following: ## app/co...
Cataclinal asked 3/11, 2017 at 14:36

1

Solved

I have a project entity which has many images, every image has title, imageFile attributes I want the user to be able to add, update and delete images from the project form. The problem is that t...
Masque asked 13/10, 2017 at 9:33

3

Prerequisites: PHP 7.1.8 Symfony 3.3.9 Doctrine 2.6.x-dev I wonder if it's possible to override an inversedBy attribute of a property association mapping that's taken from a trait. An inter...
Chief asked 21/9, 2017 at 23:54

1

Solved

Question: Why does my response return "blank" when I set the setCircularReferenceHandler callback? EDIT: Would appear that it returns nothing, but does set the header to 500 Internal Server Err...
Gonna asked 5/9, 2017 at 15:34

2

Solved

I know that I can run specific migrations using execute with up / down and version number, ie doctrine:migrations:execute YYYYMMDDHHMMSS --down My question then - is there an easier way to simply...
Gadgetry asked 18/8, 2017 at 11:12

2

Solved

I have an entity with a ManyToMany relationship with the User table: /** * @ORM\ManyToMany(targetEntity="User") * @ORM\JoinTable( * name="offer_allowedusers", * joinColumns={ * @ORM\JoinColum...
Impassable asked 17/8, 2017 at 15:53

1

I have a series of tests for controllers that rely on 3rd-party APIs that need to be mocked out in the test environment. We override the functional test client crawler and mock out the dependencies...
Euphorbia asked 7/6, 2017 at 4:45

2

Solved

repository with issue I have a form for entity User with email field: ->add('email', EmailType::class, [ 'constraints' => [ new NotBlank(), new Email([ 'checkMX' => true, ]) ], 'r...
Now asked 8/6, 2017 at 10:38
1

© 2022 - 2024 — McMap. All rights reserved.