Basic Usage =========== Requirements ------------ This guide covers getting started with the Doctrine Key Value Store. To use the KeyValueStore you actually need: - PHP 5.5 or above - Composer Package Manager (`Install Composer `_) Installation ------------ To install the KeyValueStore in your project just run the Composer command: .. $ composer require doctrine/key-value-store or add it to your composer.json file with: .. { "require": { "doctrine/key-value-store": "^1.0" } } Usage Examples -------------- In the guide examples we suppose to track e-mail campaigns based on campaign id and recipients. .. code-block:: php campaign = $campaign; $this->recipient = $recipient; $this->status = $status; } } Create ------ .. code-block:: php persist($response); // persists as much as you can $entityManager->flush(); Read ---- .. code-block:: php find( 'Response', array( 'campaign' => '1234', 'recipient' => 'kontakt@beberlei.de', ) ); Update ------ Same as create, just reuse the same id. Delete ------ .. code-block:: php find( 'Response', array( '1234', 'kontakt@beberlei.de', ) ); $entityManager->remove($response); $entityManager->flush();