File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ require_once "product.php " ;
3+
4+ /**
5+ * To make IDEs autocomplete happy
6+ *
7+ * @property string id
8+ * @property string userid
9+ * @property string name
10+ * @property string authcode
11+ * @property string iscallerid
12+ */
13+ class user extends dbObject {
14+ protected $ dbTable = "users " ;
15+ protected $ primaryKey = "id " ;
16+ protected $ dbFields = Array (
17+ 'login ' => 'text ' ,
18+ 'active ' => 'int ' ,
19+ 'customerId ' => 'int ' ,
20+ 'firstName ' => 'text ' ,
21+ 'lastName ' => 'text ' ,
22+ 'password ' => 'text ' ,
23+ 'createdAt ' => 'datetime ' ,
24+ 'expires ' => 'datetime ' ,
25+ 'loginCount ' => 'int '
26+ );
27+
28+ protected $ relations = Array (
29+ 'products ' => Array ("hasMany " , "product " , 'userid ' )
30+ );
31+ }
32+
33+
34+ ?>
You can’t perform that action at this time.
0 commit comments