PHPackages                             kukuruzniykrolik/doctrine-traits - 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. [Database &amp; ORM](/categories/database)
4. /
5. kukuruzniykrolik/doctrine-traits

ActiveLibrary[Database &amp; ORM](/categories/database)

kukuruzniykrolik/doctrine-traits
================================

Traits for doctrine orm

1.0.0(1y ago)04MITPHPPHP ^8.2

Since Nov 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kukuruzniykrolik/doctrine-traits)[ Packagist](https://packagist.org/packages/kukuruzniykrolik/doctrine-traits)[ RSS](/packages/kukuruzniykrolik-doctrine-traits/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Doctrine ORM Package with Traits for Routine Task Simplification
================================================================

[](#doctrine-orm-package-with-traits-for-routine-task-simplification)

This is a simple package for `doctrine/orm` that allows you to use Traits to simplify certain routine tasks.

WithTrait
---------

[](#withtrait)

Enables fetching entities along with others.

### Repository:

[](#repository)

```
class CategoryRepository extends ServiceEntityRepository
{
    use WithTrait; // categoryRepository
            ->with(['products', 'products.image']) // getQuery()
            ->getResult();

        return $this->json($result);
    }
}
```

Also you can set other parameters for `with()`

```
//code
$this->categoryRepository
    ->with(
        $fields, // Array of fields
        $join, // String of join type ['left', 'inner']
        $qb, // QueryBuilder
    )
//code
```

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

655d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/184115569?v=4)[kukuruzniykrolik](/maintainers/kukuruzniykrolik)[@kukuruzniykrolik](https://github.com/kukuruzniykrolik)

---

Top Contributors

[![example123](https://avatars.githubusercontent.com/u/87628?v=4)](https://github.com/example123 "example123 (2 commits)")

---

Tags

doctrinetrait

### Embed Badge

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

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

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

12017.1k](/packages/rcsofttech-audit-trail-bundle)[api-platform/doctrine-orm

Doctrine ORM bridge

314.8M107](/packages/api-platform-doctrine-orm)

PHPackages © 2026

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