You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the types are registered in Configuration/TxSchema/ folder in an array. With the availability with attributes since PHP 8.0 these can be used to register the types.
An attribute is available to tag a class as a type implementation.
The previously used Configuration/TxSchema/TypeModels.php is not considered anymore.
The migration is documented.
A breaking entry in the changelog is available.
The text was updated successfully, but these errors were encountered:
With #107 registering types via the PHP attribute `Brotkrueml\Schema\Attributes\Type`
was introduced to decouple the class name from the type. However, the
AbstractType->getType() method still checks for the class name (and has
a logic when a type starts with a number and therefore the class starts with
an underscore).
Now the attribute is taken into account. To speed up the determination of the type,
a static property is introduced which caches already resolved types.
Currently, the types are registered in
Configuration/TxSchema/
folder in an array. With the availability with attributes since PHP 8.0 these can be used to register the types.Configuration/TxSchema/TypeModels.php
is not considered anymore.The text was updated successfully, but these errors were encountered: