1: <?php
2:
3: namespace PHPixie\ORM\Drivers\Driver\SQL;
4:
5: abstract class Config extends \PHPixie\ORM\Models\Type\Database\Config
6: {
7: public $table;
8:
9: protected function processConfig($configSlice, $inflector)
10: {
11: if (($this->table = $configSlice->get('table', null)) === null) {
12: $this->table = $inflector->plural($this->model);
13: }
14:
15: parent::processConfig($configSlice, $inflector);
16: }
17:
18: protected function idField($configSlice)
19: {
20: return $configSlice->get('id', 'id');
21: }
22: }