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
After following the repository quick start guide, specifically the create sub-section, I attempted to pass an array of hashes to the exposed create method on the repository. All array elements were saved to the datasource, but only the first saved element was returned.
To Reproduce
Create a new class that inherits from ROM::Repository
Add the commands :create macro to this class
Attempt to save an array of hashes that represent the relation which the ROM::Repository defined in step 1 handles.
Inspect the underlying datasource and return value of create
Expected behavior
Providing that no elements in the input array violate the underlying datasources constraints, all input array elements should be saved in the underlying datasource, and the return value of create should be an array whose size is equal to the input array, and contain representations of each tuple saved in the underlying datasource
Describe the bug
After following the repository quick start guide, specifically the create sub-section, I attempted to pass an array of hashes to the exposed
create
method on the repository. All array elements were saved to the datasource, but only the first saved element was returned.To Reproduce
ROM::Repository
commands :create
macro to this classROM::Repository
defined in step 1 handles.create
Expected behavior
Providing that no elements in the input array violate the underlying datasources constraints, all input array elements should be saved in the underlying datasource, and the return value of
create
should be an array whose size is equal to the input array, and contain representations of each tuple saved in the underlying datasourceYour environment
The text was updated successfully, but these errors were encountered: