zend framework - Saving Model to multiple tables -


maybe on of can little problem im dealing right now.

i have simple form with: loginname, loginpassword, name, firstname, age. want save these information in 2 different tables. users , userinfo.

i have model "user" holds login information. want save additional data in other database-table.

the user information linked normal user.

my thinking was, store information in 1 big "user model" , upon $model->save() storing data in relating tables.

especially when using model in different modules helpful magic in model , not controller.

thanks in advance!

i think want todo create model mapper handling users data reference both table models.

there example here:

multiple tables single model using zend_model_mappers , zend_db_table_abstract


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -