⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Select with Union using custom model



toddev
  • profile picture
  • Member

Posted 31 August 2015 - 20: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


toddev
  • profile picture
  • Member

Posted 31 August 2015 - 20: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