@@ -47,11 +47,11 @@ |
||
47 | 47 | { |
48 | 48 | $model = InjectionContainer::resolve(Nibii::getClassName($this->options['model'], self::BELONGS_TO)); |
49 | 49 | $table = $model->getDBStoreInformation()['table']; |
50 | - if($this->options['foreign_key'] == null) { |
|
50 | + if ($this->options['foreign_key'] == null) { |
|
51 | 51 | $this->options['foreign_key'] = $model->getDescription()->getPrimaryKey()[0]; |
52 | 52 | } |
53 | - if($this->options['local_key'] == null) { |
|
54 | - $this->options['local_key'] = Text::singularize($table) . '_id'; |
|
53 | + if ($this->options['local_key'] == null) { |
|
54 | + $this->options['local_key'] = Text::singularize($table).'_id'; |
|
55 | 55 | } |
56 | 56 | } |
57 | 57 | } |