11 lines
296 B
PHP
11 lines
296 B
PHP
<?php
|
|
|
|
class Controller_orders_addcommunity extends Crunchbutton_Controller_Account {
|
|
public function init() {
|
|
Order::q('select * from `order` where id_community is null')->each(function() {
|
|
$this->id_community = $this->restaurant()->community()->id_community;
|
|
$this->save();
|
|
});
|
|
}
|
|
}
|