symfony-3.4 Questions
11
I am using Symfony 3.4.0, I try to load fixtures with:
php bin/console doctrine:fixtures:load
An error occurred while creating the data, what's wrong?
Magnesite asked 3/12, 2017 at 0:17
3
I have used the Symfony serializer to serialize my Recherche object.
In a Recherche object, I have sub objects : Categorie and Lieu.
When I deserialize my Recherche object, all the sub objects are...
Thermaesthesia asked 11/4, 2018 at 15:22
5
Solved
according to How to inject a repository into a service in Symfony2?
it's like
acme.custom_repository:
class: Doctrine\ORM\EntityRepository
factory: ['@doctrine.orm.entity_manager', getRepository...
Nitrous asked 7/3, 2018 at 18:30
4
I have quite a big project in Symfony 3.4 and I wish to update to Symfony 4.
And I get a lot of deprecation warnings. Which is ok I need to fix those, but I cant check each route for my site... the...
Corrosion asked 28/2, 2018 at 12:42
3
Solved
In my Symfony 3.4 application, the user is automatically logged out after a certain period of time. I want to change this behaviour and make my application never log out automatically. It should lo...
Malaco asked 16/3, 2018 at 14:29
2
I am using Symfony 3.4. Suddenly, whenever I try to run my tests (phpunit) in /tests, I get the following error:
RuntimeException : Unable to guess the Kernel directory.
My test class looks som...
Nomi asked 15/3, 2018 at 16:57
5
Solved
I had problems with configuring PhpStorm IDE to use http://symfony.com/doc/current/components/phpunit_bridge.html while working with Symfony 3.3.
I decided to just download phpunit.phar to bin an...
Excerpt asked 30/11, 2017 at 8:45
2
Solved
I've some trouble for the configuration of a new repository using Symfony 3.4. I've used the symfony command for create him with last LTS (3.4) and I add a new Bundle using command too. My new Bund...
Ferromagnesian asked 15/12, 2017 at 13:3
1
Solved
I had to upgrade one of my projects from symfony 2.8 to symfony 3.4, and I noticed a huge change in the validation process.
To simplify let's say I have a User entity, with many Addresses entities...
Largess asked 7/3, 2018 at 14:9
3
I'm running Symfony 3.4 with FosUserBundle.
I customized the registration form in order to get the Roles included :
<?php
$form->add('roles', ChoiceType::class, array(
'choices' => arr...
Informality asked 8/8, 2018 at 10:32
2
Solved
i upgraded recently to Symfony 3.4.x, refactor LockHandler because of deprecation warning and fall into strange behaviour.
Code in command before refactoring:
class FooCommand
{
protected functi...
Stockroom asked 12/12, 2017 at 13:47
3
Solved
Using symfony 3.4
In controller i can get project directory using this method :
$this->get('kernel')->getProjectDir()
I would like to get the project directory on command symfony (3.4) , ...
Officer asked 15/1, 2019 at 11:21
2
Am developing a mini app in Symfony 3.4. Am putting together an authentication process using Guard. I have created a class called LoginFormAuthenticator which extends AbstractFormLoginAuthenticator...
Tinaret asked 25/2, 2018 at 21:22
1
I am trying to run Symfony 3 console command inside of my docker container but not able to getting proper output.
docker-compose.yaml
version: '3.4'
services:
app:
build:
context: .
target: ...
Mangrove asked 27/8, 2019 at 12:12
2
Solved
Symfony 2.8 is the last release of the 2.x branch and the previous LTS.
Symfony 3.4 is the last release of the 3.x branch and the current LTS.
What steps are required in order to upgrade Symfony ...
Rosaline asked 17/9, 2018 at 21:20
4
Solved
I have created a new Symfony 3.4 project using:
composer create-project symfony/skeleton my-project
After that I added the following components:
composer require twig
composer require annotat...
Postal asked 9/3, 2018 at 17:52
0
The setup is thus:
I have a command, which calls a function on service X which uses logger Y.
Currently, when run from the console, the log messages are output to the console (using the -v parame...
Jose asked 16/1, 2019 at 16:33
2
after migration Symfony from 3.3 to 3.4, my function not working (it works before). I have to clear cache in controller, and when I execute command below, function returns error.
exec(sprintf(
"p...
Abie asked 9/1, 2018 at 10:33
3
Solved
I have a form with a contact list. I want the field "first name" appear with the selected contact value after submit. My problem is that the field appear but I cant set the good data, the field alw...
Glorygloryofthesnow asked 16/10, 2018 at 13:10
1
Solved
Based upon answer on my Symfony 3.4 project I thought of using the magic __call method in order to have a common way to invoke repositories as a service:
namespace AppBundle\Services;
use Doctrin...
Sobel asked 6/10, 2018 at 7:52
1
Solved
In my quest to edit data from the inverse side of a ManyToOne - OneToMany relation, and to avoid fetching the whole table's content, I want to fetch data from a list of IDs.
While this would work,...
Keyes asked 20/9, 2018 at 13:59
1
My project is currently setup with 3.4 version of symfony. I want to move to symfony4. So I moved to symfony4 as per suggestions in http://symfony.com/doc/current/setup/upgrade_major.html.
In my ...
Overstep asked 25/5, 2018 at 6:35
2
Solved
I'm trying to override the registration controller of my FOSUserBundle.
I've followed the steps on https://symfony.com/doc/3.4/bundles/inheritance.html But I get the following error:
Cannot autowi...
Egidio asked 23/5, 2018 at 11:29
1
Solved
After changing the directory name in Symfony3.4 from web to public_html the IDE (PHPStorm with Symfony plugin enabled) keeps highlighting all asset paths:
The website works, all assets are loadi...
Ulphia asked 2/5, 2018 at 17:4
1
Solved
I wanted to upgrade my old Symfony project from 2.8 to 4.0 but I stacked at upgrade from 2.8 to 3.4. I used this tutorial for the upgrade Moving to Symfony 3.4.
I got some errors while trying to u...
Niggerhead asked 19/4, 2018 at 9:31
1 Next >
© 2022 - 2024 — McMap. All rights reserved.