spotorm / spot2

Spot v2.x DataMapper built on top of Doctrine's Database Abstraction Layer
http://phpdatamapper.com
BSD 3-Clause "New" or "Revised" License
601 stars 101 forks source link

Update value of an entity attribute #249

Closed luchothoma closed 6 years ago

luchothoma commented 6 years ago
$user = $mapper->get(1);
echo $user->name;
//Michel
$user->name = "Andrew";
echo $user->name;
//Luis, but I should be Andrew