Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [2] => Array
- (
- [User] => Array
- (
- [id] => 3
- [firstname] => test
- [lastname] =>
- [email] =>
- [password] =>
- [created] => 2012-09-04 16:44:04
- [modified] => 2012-09-04 16:44:04
- )
- [Profile] => Array
- (
- [id] =>
- [skill] =>
- [user_id] =>
- )
- )
- [2] => Array
- (
- [User] => Array
- (
- [id] => 3
- [firstname] => test
- [lastname] =>
- [email] =>
- [Profile] => Array
- (
- [id] =>
- [skill] =>
- [user_id] =>
- )
- )
- )
- $result = $this->User->find('first', array('conditions' => array('User.id' => 1)));
- Set::insert($result, 'User.Profile', $result['Profile']);
- uset($result['Profile']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement