Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ColumnAnnotation.php
Go to the documentation of this file.
1<?php
3
16
17 public $name;
18
19 public $nullable = false;
20
21 public $dbType;
25 public function initAnnotation(array $properties) {
26 if (isset($properties[0])) {
27 $this->name = $properties[0];
28 unset($properties[0]);
29 } else if (isset($properties['name'])) {
30 $this->name = $properties['name'];
31 } else {
32 throw new \Exception('Column annotation must have a name');
33 }
34 parent::initAnnotation($properties);
35 }
36}
initAnnotation(array $properties)
Initialize the annotation.