Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Persistence class abstract #847

Merged
merged 3 commits into from
Apr 7, 2021
Merged

Make Persistence class abstract #847

merged 3 commits into from
Apr 7, 2021

Conversation

mvorisek
Copy link
Member

@mvorisek mvorisek commented Apr 6, 2021

finish after #846

@mvorisek mvorisek force-pushed the abstract_persistence branch 2 times, most recently from 993a7a8 to 4b3d4e8 Compare April 6, 2021 17:26
@mvorisek mvorisek force-pushed the abstract_persistence branch 2 times, most recently from cae8520 to fd22962 Compare April 7, 2021 10:46
@mvorisek mvorisek marked this pull request as ready for review April 7, 2021 10:48
@@ -239,7 +239,7 @@ public function typecastLoadRow(Model $model, array $row): array
public function tryLoad(Model $model, $id): ?array
{
if ($id !== self::ID_LOAD_ANY) {
throw new \Error/*Exception*/ ('CSV Persistence does not support other than LOAD ANY mode'); // @TODO we can iterate...
throw new Exception('CSV Persistence does not support other than LOAD ANY mode'); // @TODO
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lost comment "we can iterate"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can iterate was introduced by me yesterday, today I removed it, by ìterate I meant another PR which I found a little confusing

@mvorisek mvorisek merged commit ebb69d4 into develop Apr 7, 2021
@mvorisek mvorisek deleted the abstract_persistence branch April 7, 2021 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants