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 today

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 41% of packages

Maintenance35

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

609d 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.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8465.5M96](/packages/laravel-doctrine-orm)[api-platform/doctrine-orm

Doctrine ORM bridge

294.4M92](/packages/api-platform-doctrine-orm)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

9410.8k](/packages/ahmed-bhs-doctrine-doctor)

PHPackages © 2026

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