From 9ba0278e6cfc56d7d5aec7678673f91c8a16054c Mon Sep 17 00:00:00 2001 From: Maxime Veber <nek.dev@gmail.com> Date: Mon, 26 Mar 2018 14:32:26 +0200 Subject: [PATCH] Add more feedbacks done --- index.md | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/index.md b/index.md index 61d7432..0857afa 100644 --- a/index.md +++ b/index.md @@ -330,7 +330,7 @@ class Article <span style="font-size: 2em;color: red;">❌</span> --- -### tarifhaus/doctrine-nullable-embeddable +## tarifhaus/doctrine-nullable-embeddable Nécessite un setter. @@ -344,7 +344,30 @@ Nécessite un setter. ✨ _sisi, c'est possible_ ✨ --- -## Repository as a Service +## Repository as a Service: before + +```php +class ArticleRepository extends EntityRepository +{ + // your methods +} +``` + +```yaml +app.infrastructure.doctrine.user_repository: + class: App\Infrastructure\Doctrine\UserRepository + factory: ["@doctrine.orm.entity_manager", getRepository] + arguments: + - App\Model\User +``` + +``` +[Doctrine\ORM\ORMException] +The EntityManager is closed. +``` + +--- +## Repository as a Service: after Depuis DoctrineBundle 1.8.0 (novembre 2017) : @@ -633,7 +656,7 @@ doctrine: --- <!-- .slide: data-background="./explosion2.gif" --> -# La configuration YAML est dépréciée +# La configuration Doctrine YAML est dépréciée --- -- GitLab