From 2533902e719bec4ff11b5d2a70ac4478d083d69a Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 9 Oct 2019 10:55:29 -0400 Subject: [PATCH] Share subValues with parent if any --- angel_orm/lib/src/query.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/angel_orm/lib/src/query.dart b/angel_orm/lib/src/query.dart index 65f38bc8..f20b21ca 100644 --- a/angel_orm/lib/src/query.dart +++ b/angel_orm/lib/src/query.dart @@ -22,6 +22,9 @@ abstract class Query extends QueryBase { Query({this.parent}); + Map get substitutionValues => + parent?.substitutionValues ?? super.substitutionValues; + /// A reference to an abstract query builder. /// /// This is usually a generated class.