Skip to content

lucasxciv/persist-value-object-doctrine-odm

Repository files navigation

Persist Value Object with Doctrine ODM

This repository is a code example presented in my blog post How to persist Value Object with Doctrine ODM.

Running

Requirements

Execute

  1. Start docker containers:

    docker-compose up -d

  2. Install Composer dependencies:

    docker exec -it persist-value-object-doctrine-odm-php composer install

  3. Execute example:

    docker exec -it persist-value-object-doctrine-odm-php php bin/run.php

  4. Access MongoDB database:

    docker exec -it persist-value-object-doctrine-odm-mongo mongo test_value_object

  5. Check the result:

    db.Product.find().pretty()

About

This repository is a code example presented in my blog post: How to persist Value Object with Doctrine ODM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published