lib/activefacts/generator/traits/expr.rb in activefacts-compositions-1.9.18 vs lib/activefacts/generator/traits/expr.rb in activefacts-compositions-1.9.19

- old
+ new

@@ -17,9 +17,10 @@ MM = ActiveFacts::Metamodel unless const_defined?(:MM) public attr_reader :type_num # ActiveFacts::Metamodel::DataType number attr_reader :value # String representation of the expression attr_reader :is_mandatory # false if nullable + # This doesn't handle Postgres expressions, which can include a sub-table (e.g. via unnest) attr_reader :is_array # the expression returns an array of the specified type # Construct an expression that addresses a field from a Metamodel::Component def initialize value, type_num, is_mandatory, is_array = false @type_num = type_num