Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

belongsTo Relationship Not Updating #35

Open
crofton77 opened this issue Sep 4, 2014 · 1 comment
Open

belongsTo Relationship Not Updating #35

crofton77 opened this issue Sep 4, 2014 · 1 comment

Comments

@crofton77
Copy link

My owner relation ship is not updating.

I have added 'owner_id' column in the database.

The issue I am having is after updating the 'owner_id' is still the same as it was before update. How do I get this to work correctly?

//From Model
public function owner() {
    return $this->belongsTo('KraftHaus\BauhausUser\User');
}

// From AdminModel    
public function configureForm($mapper)
{
    ...
    $mapper->belongsTo('owner')->display('first_name');
}
@jgkinnear
Copy link

Just a thought, you're eloquent model may not allow owner_id to be fillable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants