Example #1
0
File: Id.php Project: cti/storage
 public function init(Model $model)
 {
     $this->name = 'id_' . $model->getName();
     $this->properties = array($this->name => new Property(array('behaviour' => $this, 'name' => $this->name, 'comment' => 'Identifier', 'type' => 'integer', 'primary' => true, 'required' => true, 'sequence' => true)));
     if (!$model->getSequence()) {
         $model->createSequence();
     }
 }