protected function getModelTable($model) { if (!is_object($model)) { $model = new $model(); } return DB::getTablePrefix() . $model->getTable(); }