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');
}
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?