Best practice is now to directly query the database for bundle info. I ran into this issue when a recent change to Entity reference caused a WSOD in conjunction with my own entity-providing module. I'm sure there are plenty of other issues with the same cause cropping up.
| Comment | File | Size | Author |
|---|---|---|---|
| model_entity_info_alter_fix.patch | 714 bytes | Matthew Davidson |
Comments
Comment #1
anybody#2225895: Remove hook_entity_info_alter is related, duplicate and seems to be even a bit better solution.