Jump to content


Select with Union using custom model

union custom model

  • Please log in to reply
1 reply to this topic

#1 toddev

toddev

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 31 August 2015 - 08:05 PM

Has anyone done this?  I've looked at the documentation that references custom models, but I'm not really sure where to start or what I need to override.

 

I imagine there would be issues in regards to there being multiple tables involved, therefore view/edit/etc may not work - but I'm just looking for a read only list and probably won't require any actions.

 

Any ideas/tips?

 

Thanks!

 

-Todd



#2 toddev

toddev

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 31 August 2015 - 08:35 PM

I think I made my issue too complicated by having a custom model involved for a union.  I created a view for the union and had grocery crud use that instead.  Hopefully this post may still help someone!

 

One last thing - if you are using a union, but sure to $crud->set_primary_key('your_primary_key') for that crud.

 

-Todd







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users