polysource/adapter-doctrine

Polysource — Doctrine ORM adapter: read+write any entity through the Polysource admin alongside non-Doctrine resources.

Maintainers

Package info

github.com/polysource/adapter-doctrine

Homepage

Issues

Type:symfony-bundle

pkg:composer/polysource/adapter-doctrine

Transparency log

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 0

v0.9.0 2026-05-18 00:23 UTC

README

Doctrine ORM adapter for Polysource — generic read+write DataSource over 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 — implements WritableDataSourceInterface over EntityManagerInterface.
  • 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.

Documentation