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 1mo 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

27

—

LowBetter than 49% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

557d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61d6b2b4ee8b7288dd8a6cf92e95ae390a6fa5cf5ff25ff84bf49294013816fe?d=identicon)[kukuruzniykrolik](/maintainers/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

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M36](/packages/scienta-doctrine-json-functions)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[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.

1022.4k](/packages/rcsofttech-audit-trail-bundle)[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.

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

PHPackages © 2026

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