- many-to-many relationships check that the number of rows deleted
from the association table by a delete operation matches the expected
results
+ - session.get() and session.load() propigate **kwargs through to query
- mysql
- support for column-level CHARACTER SET and COLLATE declarations,
as well as ASCII, UNICODE, NATIONAL and BINARY shorthand.
query.
"""
- entity_name = kwargs.get('entity_name', None)
- return self.query(class_, entity_name=entity_name).get(ident)
+ entity_name = kwargs.pop('entity_name', None)
+ return self.query(class_, entity_name=entity_name).get(ident, **kwargs)
def load(self, class_, ident, **kwargs):
"""Return an instance of the object based on the given
query.
"""
- entity_name = kwargs.get('entity_name', None)
- return self.query(class_, entity_name=entity_name).load(ident)
+ entity_name = kwargs.pop('entity_name', None)
+ return self.query(class_, entity_name=entity_name).load(ident, **kwargs)
def refresh(self, obj):
"""Reload the attributes for the given object from the