<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -109,8 +109,9 @@ module ActiveFacts
       end
 
       def apply_enforcement(constraint, enforcement)
-        constraint.enforcement = enforcement[0]
-        constraint.enforcement.agent = enforcement[1] if enforcement[1]
+        action, agent = *enforcement
+        constraint.enforcement = action
+        constraint.enforcement.agent = agent if agent
       end
 
       def entity_type(name, supertypes, identification, mapping_pragmas, clauses)
@@ -781,7 +782,7 @@ module ActiveFacts
             :name =&gt; fact_type.entity_type ? fact_type.entity_type.name+&quot;PK&quot; : '',
             :role_sequence =&gt; fact_type.preferred_reading.role_sequence,
             :is_preferred_identifier =&gt; true,
-            :max_frequency =&gt; 1
+            :max_frequency =&gt; 1,
             :is_preferred_identifier =&gt; prefer
           )
       end
@@ -899,6 +900,8 @@ module ActiveFacts
                 )
               embedded_presence_constraints &lt;&lt; constraint
               debug :constraint, &quot;Made new PC min=#{quantifier[0].inspect} max=#{quantifier[1].inspect} constraint #{constraint.object_id} over #{(e = fact_type.entity_type) ? e.name : role_sequence.describe} in #{fact_type.describe}&quot;
+              enforcement = role_phrase[:quantifier_restriction]
+              apply_enforcement(constraint, enforcement) if enforcement
             end
           end
         end</diff>
      <filename>lib/activefacts/cql/compiler.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>553513cc6e3f4d3d3fcea7584421ef619b10965d</id>
    </parent>
  </parents>
  <author>
    <name>Clifford Heath</name>
    <email>clifford.heath@gmail.com</email>
  </author>
  <url>http://github.com/cjheath/activefacts/commit/a08c4b03cebf3fb917e451c18c145a0339dff093</url>
  <id>a08c4b03cebf3fb917e451c18c145a0339dff093</id>
  <committed-date>2009-11-01T19:50:12-08:00</committed-date>
  <authored-date>2009-11-01T19:50:12-08:00</authored-date>
  <message>Added deontic enforcement for embedded presence constraints</message>
  <tree>61da5e122e3673786bef5572963f85a68eab406f</tree>
  <committer>
    <name>Clifford Heath</name>
    <email>clifford.heath@gmail.com</email>
  </committer>
</commit>
