PHPackages                             ssa/doctrine - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. ssa/doctrine

ActiveLibrary[Framework](/categories/framework)

ssa/doctrine
============

Add doctrine resolver for ssa framework.

041PHP

Since Apr 30Pushed 11y agoCompare

[ Source](https://github.com/deblockt/ssa-doctrine)[ Packagist](https://packagist.org/packages/ssa/doctrine)[ RSS](/packages/ssa-doctrine/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ssa/doctrine
============

[](#ssadoctrine)

ssa/doctrine is an extension for ssa. This extension allow two convert id directly on your entity.

#### Working

[](#working)

Ssa in symfony add parameter resolvers. It can convert json oject into your doctrine entity. Example : *Entity*

```
Product :
  - id
  - name
  - price

```

*Database*

Id | Name | Price

1 | Foo | 10.0

*ProductService.php*

```
class ProductService {
    private $em;

    public function __construct(EntityManagerInterface $em) {
        $this->em = $em;
    }

    public function getProduct(Product $p) {
        return $p;
    }

    public function updateProduct(Product $p) {
        $this->em->persist($p);
        $this->em->flush();
        return $p;
    }
}
```

Javascript call :

```
productService.getProduct({id : 1}).done(function(data){
  // data.id = 1
  // data.name = "Foo"
  // data.price = 10.0
});

productService.updateProduct({name : 'Bar', price : 15}).done(function(data){
  // data.id = AutoGenerated value
  // data.name = 'Bar'
  // data.price = 15
});

productService.updateProduct({id : 1, price : 11.5}).done(function(data){
  // data.id = 1
  // data.name = 'Foo'
  // data.price = 11.5
});
```

#### Configuration

[](#configuration)

To add this extension to ssa :

- add ssa/doctrine dependencies on your composer.json
- add DoctrineObjectResolver on DefaultParameterResolver

Configuration.php

```
use ssa\runner\resolver\impl\DefaultParameterResolver;
use ssa\runner\resolver\DoctrineObjectResolver;

// add the doctrine resolver
// this resolver need know your entity manager
DefaultParameterResolver::createDefaultParameterResolver()
	->addObjectResolver(new DoctrineObjectResolver($entityManager));
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5050163?v=4)[Thomas Deblock](/maintainers/deblockt)[@deblockt](https://github.com/deblockt)

---

Top Contributors

[![deblockt](https://avatars.githubusercontent.com/u/5050163?v=4)](https://github.com/deblockt "deblockt (7 commits)")

### Embed Badge

![Health badge](/badges/ssa-doctrine/health.svg)

```
[![Health](https://phpackages.com/badges/ssa-doctrine/health.svg)](https://phpackages.com/packages/ssa-doctrine)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
