Hi I have three entities User, Admin, Log
Both the admin and user have many logs.
Each log has one owner might be Usermight be Admin.
In this case, I was searching for a similar system as Laravel Elequent One To Many (Polymorphic) in Symfony Doctrine to implement.
However, I don’t want to make each AdminLog or UserLog extend Log
Or use the ManyToMany method.
In Laravel we use morphTo and morph in migrations to declare an entity polymorphic.
I tried logable_type and logable_id in the Admin and User entities to simulate that
I want s similar mechanic in Symfony however if there better solution or
way or it’s just not the best practice for let me know which is better