Skip to content

Entity property with unknown type is ignored #521

@mabar

Description

@mabar

Describe the bug

Properties using generic array syntax and defining key type are ignored.

To Reproduce

  1. Create an entity (of type Nextras\Orm\Entity\Entity)
  2. Add property @property array<string, string> $example
  3. Assign value to $example property, EntityMetadata should throw exception

Expected behavior

@property array<string, string> $example is a valid property, same as (currently valid) @property array<string> $example or at least throw an exception describing syntax is not supported.

Versions::

  • Orm: 4.0.2
  • Dbal: 4.0.2
  • Database: Postgres 13

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions