Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. [2] => Array
  2. (
  3. [User] => Array
  4. (
  5. [id] => 3
  6. [firstname] => test
  7. [lastname] =>
  8. [email] =>
  9. [password] =>
  10. [created] => 2012-09-04 16:44:04
  11. [modified] => 2012-09-04 16:44:04
  12. )
  13.  
  14. [Profile] => Array
  15. (
  16. [id] =>
  17. [skill] =>
  18. [user_id] =>
  19. )
  20.  
  21. )
  22.  
  23. [2] => Array
  24. (
  25. [User] => Array
  26. (
  27. [id] => 3
  28. [firstname] => test
  29. [lastname] =>
  30. [email] =>
  31. [Profile] => Array
  32. (
  33. [id] =>
  34. [skill] =>
  35. [user_id] =>
  36. )
  37. )
  38.  
  39.  
  40. )
  41.  
  42. $result = $this->User->find('first', array('conditions' => array('User.id' => 1)));
  43. Set::insert($result, 'User.Profile', $result['Profile']);
  44. uset($result['Profile']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement