Suppose, I have these ardent models
class User extends \LaravelBook\Ardent\Ardent
{
public $autoHydrateEntityFromInput = true;
protected $fillable = array('username', 'password', 'address');
protected $table = 'Users';
public static $relationsData = array(
'location' => array(self::HAS_ONE, 'Location');
}
class Location extends \LaravelBook\Ardent\Ardent
{
protected $fillable = array('address');
protected $table = 'Locations';
}
Now, when I write a controller code like this,
$user = new User;
$user->address = Input::get('address');
$user->push();
It doesn't save the address data to address table