Exemplo n.º 1
0
 protected function onObjectSaved(Model $object)
 {
     if ($object->isNewRecord()) {
         // Assign an auto number as a unique identifier.
         $this->autoNumberCount++;
         $object->UniqueIdentifier = $this->autoNumberCount;
     }
     parent::onObjectSaved($object);
 }