9
In PHP, I can create a model with a private/protected $id variable and no setter.
Doctrine ORM is able to set that property when the object is saved/loaded.
How does this work internally? I assume this is handled by serialization, but I haven't been able to find the code responsible of this behavior.