PHP code example of docteurklein / repository-service-bundle
1. Go to this page and download the library: Download docteurklein/repository-service-bundle 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/ */
docteurklein / repository-service-bundle example snippets
namespace Model;
/** @ORM\Entity */
class Product
{
/** @ORM\Id */
private $id;
}
namespace Repository;
/**
* @Service("products")
* @Tag("repository", attributes={"for"="Model\Product"})
*/
final class Products extends EntityRepository
{
}
php
public function registerBundles()
{
$bundles = [
new \DocteurKlein\RepositoryServiceBundle,
// …
];
return $bundles;
}