ardent icon indicating copy to clipboard operation
ardent copied to clipboard

Automatically hydrate related model

Open Dandeyl opened this issue 12 years ago • 5 comments

Hello,

is there a way to automatically hydrate related models? For example: a User with one Address

The create user form has the following elements:

<input name="email" type="text">
<input name="password" type="password">
<input name="address.city" type="text">

Is Ardent somehow able to get the User -> Address relation automatically and fill the Address model or has it to be filled and saved separately?

Thank you for a short reply

Dandeyl avatar Oct 29 '13 20:10 Dandeyl

It doesn't look like it does this. However, this would be grand!

impleri avatar Feb 02 '14 00:02 impleri

:+1:

ronlobo avatar Feb 27 '14 20:02 ronlobo

I'm using address[city] instead of address.city. It works for me!

jayremias avatar Mar 26 '14 20:03 jayremias

Thanks for this tip, will try it :)

ronlobo avatar Mar 27 '14 06:03 ronlobo

Your welcome, let me know if it worked @synlag!

jayremias avatar Mar 27 '14 12:03 jayremias