PHP code example of xm / doctrine-entity-repository
1. Go to this page and download the library: Download xm/doctrine-entity-repository library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xm / doctrine-entity-repository example snippets
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
}