symfony-3.2

Symfony 3.2 CollectionType

自闭症网瘾萝莉.ら 提交于 2020-02-08 02:28:06
问题 Here's my problem. In my project, I have a one-to-many relationship between class FactureAchat and LigneFactureAchat, when I add a Facture the products are added in the Table ligne_facture_achat without having adding the foreign key of my Facture and an error is produced "Could not determine access type for property "LinesInvoicesPurchases". " the same problem with the display of a facture with its products. "An exception has been thrown during the rendering of a template (" Notice: Undefined

Gitlab CI Ssl Error

浪子不回头ぞ 提交于 2020-01-17 06:44:34
问题 I dont have error on my pc.But ı have a error ssl on gitlabci. How is it solve this problem ? Server: Debian Error Output: [Aws\S3\Exception\S3Exception] Error executing "PutObject" on "https://s3.ap-south-1.amazonaws.com/bucketname/filename"; AWS HTTP error: Error creating resource: [m essage] fopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed [file] /builds/burhan/blutron/vendor/guzzlehttp

Connection to a db with Doctrine pdo_sqlsrv

余生长醉 提交于 2020-01-14 03:37:07
问题 I'm trying to connect to my database in SQL Server 2000, but i get an error could not find driver when i'm using pdo_sqlsrv. But if i use sqlsrv i get an error Attempted to call function "sqlsrv_configure" from namespace "Doctrine\DBAL\Driver\SQLSrv". Here is my config.yml config.yml doctrine: dbal: default_connection: default connections: default: dbname: "%database_name%" user: "%database_user%" password: "%database_password%" host: "%database_host%" driver: pdo_mysql charset: utf8mb4

How tout use kernel.terminate Event in a Service

孤街醉人 提交于 2020-01-04 03:58:10
问题 I do a service that run an heavy task, this service is call in a Controller. To avoid a too long page loading, I want return the HTTP Response and run the heavy task after. I've read we can use kernel.terminate event to do it, but I don't understand how to use it. For the moment I try to do a Listener on KernelEvent:TERMINATE, but I don't know how to filter, for the Listener only execute the job on the good page... Is it possible to add a function to execute on when the Event is trigger ?

Symfony FOSUserBundle Remeber me doesn't work

*爱你&永不变心* 提交于 2019-12-25 17:00:13
问题 I'm using FOSUserBundle with email as username. Tryin' to use the remember_me functionality but it's not working. I've read this Symfony2: "Remember me" tries to authenticate by username instad of email It's quite an old article and the username field in the database is set with the same value as the email so i don't understand why it is not working. Checking with Google Chrome Inspector the REMEMBERME cookie is set... Can someone help? This is my security.yaml providers: fos_userbundle: id:

Symfony 3 - EntityManager dependency injection with multiple db connections

落爺英雄遲暮 提交于 2019-12-12 16:12:32
问题 I have setup a Custom Authenticator using guard and auto wired the service. This is tested and works fine with just MySQL configured. I have now specified a second database connection (oracle), but Symfony will now not allow autowiring in my service configuration, because it does not know which database connection to use when injecting EntityManager in to the custom Authenticator class. Any idea how I can Configure the Dependency Injection to use a specific database connection so I can