silexphp / Silex

[DEPRECATED -- Use Symfony instead] The PHP micro-framework based on the Symfony Components
https://silex.symfony.com
MIT License
3.58k stars 718 forks source link

Silex and doctrine #1476

Closed yuioppooh closed 7 years ago

yuioppooh commented 7 years ago

Hello,

Is it possible to integrate doctrine in the same way as under Symfony? For example, using "annotations", "persist", "flush", etc ...

As the project is still fairly recent I have found only obsolete solutions ...

Thank you.

mathroc commented 7 years ago

you probably want https://github.com/dflydev/dflydev-doctrine-orm-service-provider maybe with https://github.com/saxulum/saxulum-doctrine-orm-manager-registry-provider

GromNaN commented 7 years ago

If you need to use Doctrine ORM, Silex may not be best available choice: you will end up rewriting a lot of things that are native in Symfony Framework.

If you want something Silex-like with a lightweight configuration, you should have a look to the MicroKernel.