Example of Users\Table namespace Application\Users; class Table extends \Bluz\Db\Table { protected $table = 'users'; protected $primary = array('id'); } $userRows = \Application\Users\Table::find(1,2,3,4,5); foreach ($userRows as $userRow) { $userRow -> description = 'In first 5'; $userRow -> save(); }
Автор: Anton Shevchuk
Пример #1
0
 /**
  * @dataProvider getFindWrongData
  * @expectedException Bluz\Db\Exception\InvalidPrimaryKeyException
  * @param $keyValues
  */
 public function testFindException($keyValues)
 {
     $this->table->find(...$keyValues);
 }