Profile uses joinAdd() with explicit arguments
This commit is contained in:
parent
a47c372ac4
commit
34a0525b67
@ -435,6 +435,7 @@ class Profile extends Managed_DataObject
|
|||||||
$tags->tagged = $this->id;
|
$tags->tagged = $this->id;
|
||||||
|
|
||||||
$lists->joinAdd($tags);
|
$lists->joinAdd($tags);
|
||||||
|
|
||||||
#@fixme: postgres (round(date_part('epoch', my_date)))
|
#@fixme: postgres (round(date_part('epoch', my_date)))
|
||||||
$lists->selectAdd('unix_timestamp(profile_tag.modified) as "cursor"');
|
$lists->selectAdd('unix_timestamp(profile_tag.modified) as "cursor"');
|
||||||
|
|
||||||
@ -507,7 +508,8 @@ class Profile extends Managed_DataObject
|
|||||||
$lists = new Profile_list();
|
$lists = new Profile_list();
|
||||||
$subs = new Profile_tag_subscription();
|
$subs = new Profile_tag_subscription();
|
||||||
|
|
||||||
$lists->joinAdd($subs);
|
$lists->joinAdd('id', 'profile_tag_subscription:profile_tag_id');
|
||||||
|
|
||||||
#@fixme: postgres (round(date_part('epoch', my_date)))
|
#@fixme: postgres (round(date_part('epoch', my_date)))
|
||||||
$lists->selectAdd('unix_timestamp(profile_tag_subscription.created) as "cursor"');
|
$lists->selectAdd('unix_timestamp(profile_tag_subscription.created) as "cursor"');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user