Skip to content

Entity schema name is null on specific env #11338

@romain-neil

Description

@romain-neil

Bug Report

Q A
Version 2.18.1 & 2.19.0

Summary

Hello, in test environment using behat, the entities schema name are null (when specified alongs table name, or with specific schema parameter)

So, the differents logs show errors when :

  • inserting a new entity
  • with sequence, failing to find the sequence name

Current behavior

The entity schema name are null when dumped :
$this->em->getMetadataFactory()->getMetadataFor(MyClass::class)->getSchemaName()

I also had to specify the entity sequence schema name on id field (ORM\SequenceGenerator), otherwise the sequence were not found

Logs :
SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "log" does not exist 2024-03-04T10:52:31.740067946Z LINE 1: INSERT INTO log (id, ....

How to reproduce

Create a sample entity using doctrine attributes

Expected behavior

The SQL insert contains the entity schema name.

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions