You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto-initialization of objects may lead to infinite loops in case of self-references. Needs test for verification.
Metadata-based detection is not possible - even object with all properties required may be still initializable due to before class callback. If no solution is found, feature may be just removed.
Solving it in runtime may not be viable - creating first object in structure and omiting same one deeper in structure is not deterministic behavior.
It causes infinite loops. And fork before class callbacks. Unconditional self reference is simply wrong design.
Unconditional self reference should be forbidden during metadata validation.
Both direct and non-direct (A -> B -> C -> A) self references should be validated. But only MappedObjectRule must be inspected, it is the only case where auto-initialization is used.
Auto-initialization of objects may lead to infinite loops in case of self-references. Needs test for verification.
Metadata-based detection is not possible - even object with all properties required may be still initializable due to before class callback. If no solution is found, feature may be just removed.
Solving it in runtime may not be viable - creating first object in structure and omiting same one deeper in structure is not deterministic behavior.
object-mapper/src/Processing/DefaultProcessor.php
Lines 428 to 442 in 29a0d58
The text was updated successfully, but these errors were encountered: