Bouncy Melons 0.2
declarative style orm
Data Structures | Namespaces | Variables
basic-usage.php File Reference

Go to the source code of this file.

Data Structures

class  VMyPhoneBook
 

Namespaces

 bm\example
 

Variables

 $bm = new \bm\BouncyMelons()
 
 $vm = $bm->getVmBySlug(VMyPhoneBook::getSlug())
 
 $list = $vm->getListModel()
 
 $item = $list->createSingle()
 
 $id = $item->save()
 
 $phone = $item->get('phone')
 
 $items = $list->find(new \bm\FilterAll())
 
 $itemsPerPage = 5
 
 $pageNumber = 3
 
 $filter
 
 $total = $list->getTotal($filter)
 
 $pages = $list->getMaxPages($filter)