TZK-
TZK-
Indeed, I have correctly imported the right constraint and missed to add it in my previous post after cleaning up a little bit my entity. (I edited the previous message...
```yaml # config/packages/doctrine.yaml doctrine: dbal: types: security_permission: App\PermissionEnum orm: auto_generate_proxy_classes: true mappings: App: is_bundle: false type: annotation dir: '%kernel.project_dir%/src/Entity' prefix: 'App\Entity' alias: App naming_strategy: doctrine.orm.naming_strategy.underscore auto_mapping: true ``` The type...
And if override the method `convertToDatabaseValue` in my Enum: ```php public function convertToDatabaseValue($value, AbstractPlatform $platform) { return $value; } ``` It works as expected and my validation constraint is well...
The validation process happen after the execution of `Doctrine\DBAL\Types::convertToDatabaseValue`. So if the method throws an exception, which is the case in the implementation of `Fresh\DoctrineEnumBundle\DBAL\Types::convertToDatabaseValue()` it will stop everything and...
- doctrine/orm: v2.7.3 - fresh/doctrine-enum-bundle: v6.6.2 I'm using API Platform on top of that, which could be the cause... - api-platform/api-pack: v1.2.2 I don't know how it is handled internally...
Hello, I had the same issue on Windows. I just add --quiet to the composer command and it solved the problem.
Hello, When you need to define relations between an API Model and a regular Eloquent model, you need to use the trait `Cristal\ApiWrapper\Bridges\Laravel\HasApiRelations` This trait will override the relation methods...
Can you provide the code of your Eloquent model and your API model and how your are calling the relation through your model just to be sure there are no...
Ok, indeed we haven't implemented belongsTo relations from an API Model to an Eloquent Model. I think you can turn into a hasOne relation instead. Can you confirm it works...
Hello, At the moment there are no elegant way to do that. However what I think should work is to proceed like below: ```php