PHPackages                             jackai/symfony-entity-helper - 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. jackai/symfony-entity-helper

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

jackai/symfony-entity-helper
============================

Automatically generate `Getter` / `Setter` / `Isser` / `Hasser` function through annotation, Automatically generate through `@ORM\\Column` judgment to generate toArray return and auto load values to entity.

v0.6(5y ago)115MITPHPPHP ^7.1

Since Sep 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jackai/SymfonyEntityHelper)[ Packagist](https://packagist.org/packages/jackai/symfony-entity-helper)[ RSS](/packages/jackai-symfony-entity-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (16)Versions (4)Used By (0)

Jackai Entity Helper
====================

[](#jackai-entity-helper)

[![Build Status](https://camo.githubusercontent.com/e531b3351efd3ebab2f5ca5e3f5f7687bec1c71153812b80e0d0979901484ec3/68747470733a2f2f7472617669732d63692e6f72672f6a61636b61692f53796d666f6e79456e7469747948656c7065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jackai/SymfonyEntityHelper)

1. Automatically generate `Getter` / `Setter` / `Isser` / `Hasser` functions through annotation
2. Automatically generate through `@ORM\Column` judgment to generate toArray return.
3. Auto load values to entity.

Installation
------------

[](#installation)

1.Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:

```
composer require jackai/symfony-entity-helper

```

2.Open config/services.yaml and add this config:

```
services:
    Jackai\EntityHelper\ClearEntityHelperCache:
        tags:
          - { name: kernel.cache_clearer }

```

Useage
------

[](#useage)

### Auto load values

[](#auto-load-values)

```
namespace App\Controller;

use App\Entity\Product;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
use Doctrine\ORM\EntityManagerInterface;
use Jackai\EntityHelper\EntityHelpers;

class TestController extends AbstractController
{
    /**
     * @Route("/test")
     */
    public function test(Request $request)
    {
        $entityManager = $this->getDoctrine()->getManager();
        try {
            $query = $request->query->all();

            // validate your values

            $product = new Product();

            // auto load your values
            EntityHelpers::load($product, $query);

            $entityManager->persist($product);
            $entityManager->flush();

            return new JsonResponse([
                'code' => 'ok',
                'ret' => $product->toArray(),
            ]);
        } catch (\Exception $e) {
            return new JsonResponse([
                'code' => $e->getCode(),
                'msg' => $e->getMessage(),
            ]);
        }
    }
}

```

### Automatically generate `Getter` / `Setter` / `Isser` / `Hasser` functions

[](#automatically-generate-getter--setter--isser--hasser-functions)

```
namespace App\Entity;

use App\Repository\ProductRepository;
use Doctrine\ORM\Mapping as ORM;
use Jackai\EntityHelper\Annotations as EH;
use Jackai\EntityHelper\EntityHelperTrait;

/**
 * @ORM\Entity(repositoryClass=ProductRepository::class)
 */
class Product
{
    use EntityHelperTrait;

    /**
     * @EH\Getter
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @EH\Getter
     * @EH\Setter
     * @ORM\Column(type = "string", length = 255)
     */
    private $name;

    /**
     * @EH\Getter
     * @EH\Hasser
     * @EH\Setter
     * @ORM\OneToMany(targetEntity="App\Entity\Pictures", mappedBy="product")
     */
    private $pictures;

    /**
     * @EH\Isser
     * @EH\Setter
     * @ORM\Column(type = "boolean", name="on_sale")
     */
    private $onSale;
}

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

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.

###  Release Activity

Cadence

Every ~16 days

Total

2

Last Release

2041d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5f43f309684809c432aafe9bef2781f5335cfb8a966fe2466af5f959bf60672?d=identicon)[jackai](/maintainers/jackai)

---

Top Contributors

[![jackai](https://avatars.githubusercontent.com/u/4697363?v=4)](https://github.com/jackai "jackai (9 commits)")

---

Tags

symfonyentityannotation

### Embed Badge

![Health badge](/badges/jackai-symfony-entity-helper/health.svg)

```
[![Health](https://phpackages.com/badges/jackai-symfony-entity-helper/health.svg)](https://phpackages.com/packages/jackai-symfony-entity-helper)
```

###  Alternatives

[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-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)
