Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Application Rules must be labeled in a comment adjacent to the code that enforces them using the form AR-Model-#, that is the string "AR-", the camel cased singular model name, a dash, and the number of the rule for that model (for example: AR-ApiUser-3). Global rules are referred to as General Model Rules, and are labeled AR-GMR-#.

Wherever possible, log entries (to the rules level) should be generated when an Application Rule is applied.

In general, Application Rules are not configurable.

...

Code Block
$this->belongsTo('Type')->setForeignKey('default_type_id')->setProperty('default_type');

Ordering

Many models can be ordered, eg Provisioning Targets. In order to leverage common utility code:

  1. The relevant table definition should include the field ordr, spelled with out the "e". (This is because order is a reserved keyword in MySQL.)
  2. The Table should use OrderableBehavior, which will automatically set an appropriate value for ordr if none is provided when a new entity is saved.

Timezones

All timestamps are stored in the database in UTC (AR-GMR-4).

...