Category "doctrine"

Doctrine - The referenced column name 'id' has to be a primary key

Hy, I have problem with validation and schema creation I am creating an api via the api platform, (this is my 1st project under symfony) I have a constraint, th

Set @JoinColumn name in doctrine

EDIT: In the end as @Jakumi commented it was just a cache issue, after clearing it everything worked as expected. There are only two hard things in Computer Sc

DateTime being persisted to one DB column but not the other in Symfony 4.4 app

I have a baffling issues where I have a DateTime object which seems to be able to be persisted and flushed to one column, but not the other. I have checked the

PHP Laminas DoctrineObjectInputFilter get value of other property in Callback input filter

I am working with Laminas DoctrineObjectInputFilter and want to get value of other property in Callback input filter like this code is in init function of Filte

Doctrine entity listener not firing using YAML configuration

When i use the following annotation within an entity, the listener for it is called successfully. The problem with using the annotation rather than configuring

Not able to access model in the controller mautic

Not able to access new model in the controller in mautic Mautic uses Symfony 2.x framework Steps taken: created entity extending CommonEntity created reposit

How can I restrict certain entities from my queryBuilder?

I'm trying to use a queryBuilder to get some users who did NOT have an appointment with subject 'PC' ("Prise de Contact"). and fit certain criteria of appointme

How to build query from SQL by Doctrine QueryBuilder?

I'm new in Doctrine ORM, and I need help with building QueryBuilder command. I have a SQL command and I need covert to QueryBuilder. $qb = $this->entityManag

Failed user login on production server using Symfony framework (Authentication request could not be processed due to...)

I'm using Symfony for a project and I have been trying to get the login to work on production server with no success for the past 2 days. I keep getting the err

How to Install Composer Require doctrine/dbal

In the Laravel framework, I am trying to modify my columns using change() by migrations. Right now, I need to install... composer require doctrine/dbal I am

How to get all possible values for an existing ENUM or SET - field

I'm using Doctrine in Symfony4. How do I retrieve all possible values for an ENUM or SET column on this base?

Doctrine 2 Symfony 5 migration to an oracle database

I have PHP 8.0 Ubuntu 20.4 running in a VM Symfony Version 5 doctrine/orm 2.8.2 doctrine/dbal 2.12.1 doctrine/migrations 3.1.1 and oracle19c running I have als

Doctrine ORM "Multiple non-persisted new entities were found through the given association graph:"

$added_obj = []; foreach ($something as $data) { $obj = $this->class->function($data, $par2); if (null !== $obj && !(array_key_exists

Mark an individual Doctrine migration as ran/executed

Is there a way that I can mark a Doctrine migration as "ran" or "executed" in the way that it won't be shown as a migration that needs to be migrated? app/cons

insert ignore on duplicate entries in Doctrine2/Symfony2

How to ignore on duplicate entries using Doctrine2? Error example: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'symfony' for key 'UN

Doctrine LIKE case insensitive

is it possible to make a search with Doctrine case insensitive?