2017 © Pedro Peláez
 

library doctrine-entity-repository

A different method of creating entity repositories for use with Doctrine.

image

xm/doctrine-entity-repository

A different method of creating entity repositories for use with Doctrine.

  • Thursday, August 17, 2017
  • by darrylhein
  • Repository
  • 2 Watchers
  • 0 Stars
  • 64 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 31 % Grown

The README.md

XM\Doctrine Entity Repository

A different way of creating Doctrine Repositories based on this article by Magnus Nordlander. The main difference (as opposed to "normal" Doctrine Repositories) is that these can be autowired by Symfony. We've also found them easier to test., (*1)

Repositories extending this class should not be referenced by the repositoryClass entity mapping. But the repository can be used in the same way as "normal" Doctrine Entity Repositories., (*2)

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*3)

composer require xm/doctrine-entity-repository

This command requires Composer., (*4)

Usage

<?php

namespace AppBundle\Repository;

use AppBundle\Entity\User;
use XM\EntityRepository;

class UserRepository extends EntityRepository
{
    /**
     * The entity class name that the repository is for.
     * Required. 
     */
    protected $class = User::class;

    // ... custom methods
}

The Versions

17/08 2017

dev-master

9999999-dev https://github.com/xmmedia/doctrine-entity-repository

A different method of creating entity repositories for use with Doctrine.

  Sources   Download

MIT

The Requires

 

by Darryl Hein

17/08 2017

1.0.0

1.0.0.0 https://github.com/xmmedia/doctrine-entity-repository

A different method of creating entity repositories for use with Doctrine.

  Sources   Download

MIT

The Requires

 

by Darryl Hein