dotkernel / dot-mapper

DotKernel mapper pattern implementation
MIT License
2 stars 2 forks source link

Mapper save problem #12

Closed bircaandrian closed 7 years ago

bircaandrian commented 7 years ago

When saving multiple new entities one by one, the second entity will trigger an update instead, because the identityMap will be set at key ` Therefore the condition $isNew = empty($primaryKey) && !isset($this->identityMap[$mapKey]);`

is problematic

n3vrax commented 7 years ago

Fixed in #13