symfony Questions

2

Solved

Strange issue in Symfony4: Doctrine works, I can validate the schema, create the database etc using php bin/console doctrine:schema:create. But my PHPUnit test does not have a connection. By runnin...
Applause asked 9/1, 2018 at 15:6

3

Solved

I can create a form which works fine but getting errors when trying to flush data to the database: The controller action looks like this: $purchase = new Purchase(); $form = $this->createForm...
Eolithic asked 27/7, 2016 at 11:41

5

Solved

I can't create a new Symfony project as described in the Symfony Documentation: https://symfony.com/doc/4.3/setup.html This is the command I use: symfony new --full my_project Output: $ symfony ...
Circinus asked 17/7, 2019 at 15:45

9

Solved

I have a symfony project, where I use api-platform. I have an entity, and I have data providers for it. I am in trouble with definition of additional parameters for a collection endpoint. An entity...
Boarhound asked 16/5, 2018 at 11:40

4

Solved

Ive been just starting to learn Symfony PHP framework, and Ive run into some problems with its configuration. When trying to create a new project with command line like so: symfony new --full my_pr...
Dyson asked 4/10, 2020 at 15:58

11

Solved

I am creating a php website using the symfony framework and composer. Operating system: Windows 10 PHP version: 7.3.2 Symfony: 4.2.3 (env: dev, debug: true) Composer: 1.8.4 (2019-02-11) When I ...
Assignation asked 13/2, 2019 at 16:53

5

Solved

Try to use Symfony mailer with Gmail on my Symfony 5.1 app. mailer.yaml: framework: mailer: dsn: '%env(MAILER_DSN)%' .env: MAILER_DSN=gmail+smtp://[email protected]:mypassword@localhost Bu...
Wingfield asked 2/9, 2020 at 16:47

4

How I can stop symfony trying to create the table for the view I created on a doctrine migration? Entity mapping the view /** * Class TenancyPendingInspection * @ORM\Entity(repositoryClass="DJ...
Sexagesima asked 24/11, 2017 at 16:46

5

i want to use Rector for refactoring my code because i update my project to symfony 5.4 to 6.1. My php project version : 8.1.5 So, i want to use a simple rule who change my annotation to attribut w...
Unroof asked 3/8, 2022 at 10:9

1

I've follow the implementation of filters with annotation to load only the sources concern for one user. Very usefull, work properly. https://api-platform.com/docs/core/filters/#using-doctrine-fil...
Unclassical asked 23/11, 2018 at 19:35

3

When I try to run doctrine:schema:update --complete --dump-sql on a Symfony dockerized application, the output is showing below: ALTER TABLE offer DROP FOREIGN KEY FK_29D6873EC1EA42F3; DROP TABLE d...
Dropsical asked 16/2, 2023 at 6:15

2

Solved

I'm trying to create a specific twig filter that can handle 2 parameters. $documentURL = new Twig_SimpleFilter('documentURL', function($DocumentId, $UserId){ $URL = "http://example.example.com/...
Papaya asked 25/2, 2014 at 18:45

3

I have a PHP/Symfony app running in Docker which uses Monolog to log to stdout/stderr. This all works great, except when running Symfony console commands inside a container. monolog: handlers: s...
Molarity asked 13/2, 2019 at 23:33

14

Solved

I'm currently face to this problem. I am really new beginer at Symfony. Problem : When i create a new db with cli symfony console doctrine:database:create, i am getting these errors : In AbstractPo...
Neuman asked 14/3, 2021 at 16:38

3

Solved

I am trying to set up a Criteria according to the Doctrine Docs. Unfortunately they don't tell you how to access attributes of an related Object. Let me give you an example. I have an ArrayCollec...
Sunshine asked 9/8, 2013 at 16:38

2

Solved

My understanding of kernel.terminate is that it triggers after the response has been returned to the client. In my testing tough, this does not appear to be the case. If I put a sleep(10) in the ...
Carpus asked 18/5, 2014 at 8:3

4

I have a console application with Symfony 2, the script run on cron (terminal). But, after \Doctrine\DBAL\DBALException the script throw N \Doctrine\ORM\ORMException with message "The EntityManager...
Weaponeer asked 26/11, 2014 at 15:30

9

Solved

Is is possible to decode JSON in twig? Googling doesn't seem to yield anything about this. Does decoding JSON in Twig not make sense? I'm trying to access 2 entity properties on an Symfony2's en...
Silverfish asked 24/1, 2013 at 11:50

3

Solved

I used the code below and it has csrf too. But how can I disable its csrf? I searched and Disable CSRF token on login form did not help, as there createFormBuilder() is not used in my case below, s...
Ching asked 12/11, 2017 at 13:56

8

Solved

I'm using symfony framework 3 to develop a web application. I need to add boostrap's functionality to my application. I installed bootstrap using the below command. (I'm using composer.) composer ...
Godgiven asked 6/4, 2016 at 13:45

5

I am trying to run the tests in PHPUnit and getting this error. Fatal error: Uncaught exception 'ErrorException' with message 'Class __PHP_Incomplete_Class has no unserializer' in /opt/lampp/lib/p...
Marabelle asked 4/6, 2013 at 9:13

4

Solved

Context I am learning Symfony through "ENI learning" course "Learn to Develop web applications with PHP and Symfony (2nd edition)", by Yves ROCAMORA. In the section "Webpac...
Daph asked 19/12, 2023 at 9:53

6

I have a project using symfony/flex in which I cannot run composer install or composer update. I also can't create a new composer project with symfony/flex as a dependency as the failure is the sam...
Engaged asked 14/6, 2019 at 18:1

6

Solved

I have the following code: namespace Acme\StoreBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Acme\StoreBundle\Entity\User * * @ORM\Table(name="users") * @ORM\Entity() */ class User...
Conall asked 3/2, 2012 at 10:42

14

Solved

Trying to use the YouTube API v3 to get some video(s) information, using Guzzle in Symfony2 using Service Descriptors. When I run the script, I get this: [curl] 60: SSL certificate problem: un...
Eldin asked 24/7, 2014 at 1:13

© 2022 - 2024 — McMap. All rights reserved.