https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20621

Fridolin SOMERS <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |m

--- Comment #3 from Fridolin SOMERS <[email protected]> ---
Ahhh ok that is why in unit tests we see for example in
t/db_dependent/Members.t :
  $borrowernumber = Koha::Patron->new( \%data )->store->borrowernumber;
  my $patron = Koha::Patrons->find( $borrowernumber );

discard_changes() has a disturbing name i feel.

Should it use get_from_storage ?
  my $patron = Koha::Patron->new( \%data )->store->get_from_storage;

In my opinion store() should update the object, that is a common behavior in
any ORM i think.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to