@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $this->options['foreign_key'] = $model->getDescription()->getPrimaryKey()[0]; |
| 54 | 54 | } |
| 55 | 55 | if ($this->options['local_key'] == null) { |
| 56 | - $this->options['local_key'] = Text::singularize($table) . '_id'; |
|
| 56 | + $this->options['local_key'] = Text::singularize($table).'_id'; |
|
| 57 | 57 | } |
| 58 | 58 | } |
| 59 | 59 | |
@@ -26,8 +26,8 @@ |
||
| 26 | 26 | |
| 27 | 27 | namespace ntentan\nibii\relationships; |
| 28 | 28 | |
| 29 | -use ntentan\utils\Text; |
|
| 30 | 29 | use ntentan\nibii\ORMContext; |
| 30 | +use ntentan\utils\Text; |
|
| 31 | 31 | |
| 32 | 32 | class BelongsToRelationship extends \ntentan\nibii\Relationship |
| 33 | 33 | { |