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

Kyle M Hall <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #54272|0                           |1
        is obsolete|                            |
  Attachment #54273|0                           |1
        is obsolete|                            |
  Attachment #54274|0                           |1
        is obsolete|                            |
  Attachment #54275|0                           |1
        is obsolete|                            |
  Attachment #54276|0                           |1
        is obsolete|                            |
  Attachment #54277|0                           |1
        is obsolete|                            |
  Attachment #55378|0                           |1
        is obsolete|                            |

--- Comment #14 from Kyle M Hall <[email protected]> ---
Created attachment 56142
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56142&action=edit
Bug 17091: Add AUTOLOAD to Koha::Objects

Up to now if a Koha::Objects based object needs to call DBIx::Class methods, we
have to create a new method for Koha::Objects, something like:
  sub method {
    my $self = shift;
    return $self->_resultset->method
  }

To simplify and ease the call to DBIx::Class method, this patch defines an
AUTOLOAD to call the DBIx::Class method on the resultset we are encapsulating.

Signed-off-by: Hector Castro <[email protected]>

Signed-off-by: Kyle M Hall <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://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