Value objects in DoctrineMethodologies

by Andrea Giuliano on 3 aprile 2014 with 2 comments

Value object definition “A small simple object, like money or a data range, whose equality isn’t based on identity”1 Use case Let’s assume for example that you want to represent addresses in your application domain. What is really important to represent addresses is the value they hold and not the exact instance they could become. …

leggi ...