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
Collection::isValid only returns true if the collection has previously been read from a file as the m_isValid member is defaulted to false and only set to true in Collection::prepareAfterRead. Naively I would have expected that a newly created collection should also be valid, e.g.
podio::EventStore store;
auto& collection = store.create<ExampleCollection>("aCollection");
collection.isValid(); // should be true but currently returns false
In my opinion the validity of a collection should not depend on whether it has been read from file or whether it has previously been created without an intermediate I/O operation. For the user this should be completely transparent and it should be possible to not care from where the collection is provided as long as it is known to the EventStore.
The text was updated successfully, but these errors were encountered:
Collection::isValid
only returnstrue
if the collection has previously been read from a file as them_isValid
member is defaulted tofalse
and only set totrue
inCollection::prepareAfterRead
. Naively I would have expected that a newly created collection should also be valid, e.g.In my opinion the validity of a collection should not depend on whether it has been read from file or whether it has previously been created without an intermediate I/O operation. For the user this should be completely transparent and it should be possible to not care from where the collection is provided as long as it is known to the
EventStore
.The text was updated successfully, but these errors were encountered: