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

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

v0.1.1 2026-05-10 21:00 UTC

This package is auto-updated.

Last update: 2026-05-10 21:01:36 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