[PR #35] [CLOSED] Yaml driver #65

Closed
opened 2026-01-23 11:35:05 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/KeyValueStore/pull/35
Author: @EmanueleMinotto
Created: 9/18/2015
Status: Closed

Base: masterHead: yaml-driver


📝 Commits (3)

  • 00c8e1f changed annotations namespace to follow doctrine/doctrine2
  • 0f6efb7 added YAML driver (+ tests)
  • 927fc52 temporary solution

📊 Changes

14 files changed (+233 additions, -38 deletions)

View changed files

📝 lib/Doctrine/KeyValueStore/Mapping/Driver/AnnotationDriver.php (+16 -5)
lib/Doctrine/KeyValueStore/Mapping/Driver/YamlDriver.php (+103 -0)
📝 lib/Doctrine/KeyValueStore/Mapping/Entity.php (+3 -2)
📝 lib/Doctrine/KeyValueStore/Mapping/Id.php (+3 -2)
📝 lib/Doctrine/KeyValueStore/Mapping/Transient.php (+3 -2)
📝 tests/Doctrine/Tests/KeyValueStore/Functional/BasicCrudTestCase.php (+39 -7)
📝 tests/Doctrine/Tests/KeyValueStore/Functional/InheritanceTest.php (+14 -6)
📝 tests/Doctrine/Tests/KeyValueStore/Functional/PersistTest.php (+24 -7)
📝 tests/Doctrine/Tests/KeyValueStoreTestCase.php (+12 -4)
tests/Doctrine/Tests/fixtures/Doctrine.Tests.KeyValueStore.Functional.ChildEntity.dcm.yml (+3 -0)
tests/Doctrine/Tests/fixtures/Doctrine.Tests.KeyValueStore.Functional.ParentEntity.dcm.yml (+3 -0)
tests/Doctrine/Tests/fixtures/Doctrine.Tests.KeyValueStore.Functional.PersistEntity.dcm.yml (+3 -0)
tests/Doctrine/Tests/fixtures/Doctrine.Tests.KeyValueStore.Functional.Post.dcm.yml (+4 -0)
📝 tests/bootstrap.php (+3 -3)

📄 Description

Should be a solution (a first draft at least) for #13

# Doctrine.Tests.KeyValueStore.Functional.Post.dcm.yml
Doctrine\Tests\KeyValueStore\Functional\Post:
  storageName: post
  id:
    - id
  transient:
    - foo
    - bar

The identifier can also be a string. A single attribute as identifier should be a common thing, I guess.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/KeyValueStore/pull/35 **Author:** [@EmanueleMinotto](https://github.com/EmanueleMinotto) **Created:** 9/18/2015 **Status:** ❌ Closed **Base:** `master` ← **Head:** `yaml-driver` --- ### 📝 Commits (3) - [`00c8e1f`](https://github.com/doctrine/KeyValueStore/commit/00c8e1fa46e37d12a00c3c1ebe4451f8d7dd8354) changed annotations namespace to follow doctrine/doctrine2 - [`0f6efb7`](https://github.com/doctrine/KeyValueStore/commit/0f6efb76f9bfef6500b3d261b5a5e2c352207798) added YAML driver (+ tests) - [`927fc52`](https://github.com/doctrine/KeyValueStore/commit/927fc5219389f62f34c973ae117877ab5bc8d05a) temporary solution ### 📊 Changes **14 files changed** (+233 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/KeyValueStore/Mapping/Driver/AnnotationDriver.php` (+16 -5) ➕ `lib/Doctrine/KeyValueStore/Mapping/Driver/YamlDriver.php` (+103 -0) 📝 `lib/Doctrine/KeyValueStore/Mapping/Entity.php` (+3 -2) 📝 `lib/Doctrine/KeyValueStore/Mapping/Id.php` (+3 -2) 📝 `lib/Doctrine/KeyValueStore/Mapping/Transient.php` (+3 -2) 📝 `tests/Doctrine/Tests/KeyValueStore/Functional/BasicCrudTestCase.php` (+39 -7) 📝 `tests/Doctrine/Tests/KeyValueStore/Functional/InheritanceTest.php` (+14 -6) 📝 `tests/Doctrine/Tests/KeyValueStore/Functional/PersistTest.php` (+24 -7) 📝 `tests/Doctrine/Tests/KeyValueStoreTestCase.php` (+12 -4) ➕ `tests/Doctrine/Tests/fixtures/Doctrine.Tests.KeyValueStore.Functional.ChildEntity.dcm.yml` (+3 -0) ➕ `tests/Doctrine/Tests/fixtures/Doctrine.Tests.KeyValueStore.Functional.ParentEntity.dcm.yml` (+3 -0) ➕ `tests/Doctrine/Tests/fixtures/Doctrine.Tests.KeyValueStore.Functional.PersistEntity.dcm.yml` (+3 -0) ➕ `tests/Doctrine/Tests/fixtures/Doctrine.Tests.KeyValueStore.Functional.Post.dcm.yml` (+4 -0) 📝 `tests/bootstrap.php` (+3 -3) </details> ### 📄 Description Should be a solution (a first draft at least) for #13 ``` yaml # Doctrine.Tests.KeyValueStore.Functional.Post.dcm.yml Doctrine\Tests\KeyValueStore\Functional\Post: storageName: post id: - id transient: - foo - bar ``` The identifier can also be a string. A single attribute as identifier should be a common thing, I guess. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-23 11:35:05 +01:00
admin closed this issue 2026-01-23 11:35:05 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/KeyValueStore#65