Bouncy Melons 0.1
declarative style orm
listminimal.php
Go to the documentation of this file.
1 <?php
2 
3 namespace bm\example;
4 /*
5  * smallest list declaration
6  */
7 class Brands extends \bm\DataList {
8 
9  /*
10  * in most cases you should implement only this method
11  */
12  public function createSingle() {
13  return new Brand();
14  }
15 
16  /*
17  * $this->getTableName() will return "brands"
18  * $this->getViewName() will return "brands_view"
19  * default view will be created with joins based on id fields
20  * declared in Brand class, if any
21  */
22 }