Skip to content

Conversation

@maguilar92
Copy link
Collaborator

When you have a relation with forced foreign key the code fails. For example:

/**
 * Get the products records associated with the warehouse shelve.
 *
 * @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function products()
{
     return $this->hasMany('Modules\Warehouse\Entities\Product', 'default_warehouse_shelve_id', 'id');
}

@maguilar92 maguilar92 merged commit 8d7fb46 into Askedio:master Jun 21, 2017
@maguilar92
Copy link
Collaborator Author

@gcphost This is a bug fix please push it :)

@maguilar92 maguilar92 added the bug label Jun 21, 2017
@gcphost
Copy link
Contributor

gcphost commented Jun 21, 2017

Updated packagist to auto-update, just need to create a new release after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants