Very ORM specific, but I guess there's no choice here...