Let's say I have two relational tables with the following settings:
users (id, email, pwd)
users_info (id, uid, name, phone)
If I do this in my UsersController:
$user = Users::findFirstByXid($id); $this->view->form = new UsersForm($user, array('edit' => true));
I only see email field autocompleted. That's because to access it I can do
$user->email but for get the
name, I must do somethign like
is there some "magic" wat in Phalcon to achieve this or must I make a manual mapping of the object?
Thanks and please forgive this bad english.