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.2
- doctrine/orm: ^2.20 || ^3.0
- doctrine/persistence: ^3.0 || ^4.0
- polysource/core: ^0.1 || ^0.2 || ^0.3 || ^0.4 || ^0.5 || ^0.6 || ^0.7 || ^0.8 || ^0.9 || ^0.10 || ^0.11 || ^1.0
- symfony/config: ^6.4 || ^7.0 || ^8.0
- symfony/dependency-injection: ^6.4 || ^7.0 || ^8.0
- symfony/http-kernel: ^6.4 || ^7.0 || ^8.0
Requires (Dev)
- doctrine/dbal: ^3.6 || ^4.0
- phpunit/phpunit: ^10.5 || ^11.5
- polysource/symfony-bundle: ^0.1 || ^0.2 || ^0.3 || ^0.4 || ^0.5 || ^0.6 || ^0.7 || ^0.8 || ^0.9 || ^0.10 || ^0.11 || ^1.0
- symfony/property-access: ^6.4 || ^7.0 || ^8.0
This package is auto-updated.
Last update: 2026-08-07 15:37:52 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.DoctrineEntityResource— 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.