Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter DataMapper ORM include_related always returning first row in database table
#2

[eluser]Andy78[/eluser]
Sorry had a mental block I see where i am going wrong, should have been:

$user = new User();
$user->where('id', $user_id);
$user->include_related('user_profile', array('firstname','surname', 'telephone', 'address1', 'address2', 'city', 'postcode'), TRUE, TRUE)->get();




Messages In This Thread
CodeIgniter DataMapper ORM include_related always returning first row in database table - by El Forum - 03-21-2012, 06:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB