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
Bolt - Fatal error.
Class: Bolt\Exception\StorageException
Message: Attempted to load mapping data for unmapped class person
Code: 0
Bolt\Storage\Mapping\MetadataDriver->loadMetadataForClass()
[root]//src/Storage/EntityManager.php, line 256
array:1 [▼
0 => "person"
]
The text was updated successfully, but these errors were encountered:
We probably need to work out a strategy for dealing with these errors, and it depends to a certain extent whether we want to provide UI feedback, or fail with an Exception.
At the point this exception is thrown then the error is technically correct, in that it's identical to what you'd receive if you did: $repo = $app['storage']->getRepository('nonexistentitem') whereby the MetadataDrive would lookup nonexistentitem and declare that nothing could be found assigned to that item.
What we can do is either throw more precise exceptions in the same location (eg )...
Bolt - Fatal error.
Class: Bolt\Exception\StorageException
Message: Attempted to load mapping data for person defined at 'contenttypes.yml line XX'
The backender in me says that throwing the more descriptive error is OK… but… it does make a site rather fragile while being worked on… save you new work-in-progress ContentType and your whole site blows up… But I build these things on bur-boxes first anyway.
The following seems to fail silently in 2.x
In master it throws the uninformative:
The text was updated successfully, but these errors were encountered: