Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. $collectionRestriction->getSelect()
  2. ->join(array('admin_restriction'=>'ysance_admin_restrictions'),
  3. 'main_table.user_id = admin_restriction.user_id', array('website_id'))
  4. ->join(array('store'=>'core_store'),
  5. 'FIND_IN_SET(admin_restriction.website_id , store.store_id)', array('name'))
  6. ->group('main_table.user_id');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement