polysource / adapter-doctrine
Polysource — Doctrine ORM adapter: read+write any entity through the Polysource admin alongside non-Doctrine resources.
Package info
github.com/polysource/adapter-doctrine
Type:symfony-bundle
pkg:composer/polysource/adapter-doctrine
Requires
- php: >=8.1
- doctrine/orm: ^2.20 || ^3.0
- doctrine/persistence: ^3.0 || ^4.0
- polysource/core: ^0.1
- symfony/config: ^5.4 || ^6.0 || ^7.0 || ^8.0
- symfony/dependency-injection: ^5.4 || ^6.0 || ^7.0 || ^8.0
- symfony/http-kernel: ^5.4 || ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- doctrine/dbal: ^3.6 || ^4.0
- phpunit/phpunit: ^10.5 || ^11.5
- polysource/symfony-bundle: 0.1.x-dev
- symfony/property-access: ^5.4 || ^6.0 || ^7.0 || ^8.0
This package is auto-updated.
Last update: 2026-05-10 21:01:36 UTC
README
Doctrine ORM adapter for Polysource — generic read+write
DataSourceover any Doctrine entity.
Part of the Polysource monorepo. MIT-licensed.
When to use
The Doctrine cohabitation case from ADR-012 — when a Polysource standalone admin needs to expose a Doctrine entity (lightweight cases) alongside an EasyAdmin instance handling the heavy CRUD.
For pure Doctrine CRUD, keep using EasyAdmin.
Install
composer require polysource/adapter-doctrine
Register the bundle:
return [ Polysource\Adapter\Doctrine\PolysourceAdapterDoctrineBundle::class => ['all' => true], ];
What it ships
DoctrineDataSource— implementsWritableDataSourceInterfaceoverEntityManagerInterface.DoctrineResource— non-final convenience base for declaring a Doctrine entity as a Polysource resource.- Whitelist filter properties — only properties explicitly declared as filterable can be queried, preventing query injection.