Bouncy Melons 0.2
declarative style orm
listminimal.php
<?php
namespace bm\example;
/*
* smallest list declaration
*/
class Brands extends \bm\DataList {
/*
* in most cases you should implement only this method
*/
public function createSingle() {
return new Brand();
}
/*
* $this->getTableName() will return "brands"
* $this->getViewName() will return "brands_view"
* default view will be created with joins based on id fields
* declared in Brand class, if any
*/
}