Search found 5 matches

Go to advanced search

by huisvanheden
Mon May 05, 2014 1:04 pm
Forum: Development Chats
Topic: ActiveRecord join on other column than 'id'
Replies: 3
Views: 2023

Re: ActiveRecord join on other column than 'id'

Ok, thanks for the extra information ;)
by huisvanheden
Fri Apr 25, 2014 12:00 am
Forum: Development Chats
Topic: Sorting model on related data
Replies: 1
Views: 1484

Sorting model on related data

Let's say I have a grid that displays a table from model 1 and this model has a relation with the table of model 2. When the model is rendered the id's from model 2 used in model 1 are changed to another column of model 2 (like in the presidents module using the formatColums method in the model 1 co...
by huisvanheden
Tue Apr 22, 2014 2:55 pm
Forum: Development Chats
Topic: How to clear framework cache?
Replies: 6
Views: 4139

Re: How to clear framework cache?

just set the debug variable in the groupoffice config.php file to true, this will disable compression and caching on the server side
by huisvanheden
Mon Apr 21, 2014 9:59 pm
Forum: Development Chats
Topic: ActiveRecord join on other column than 'id'
Replies: 3
Views: 2023

Re: ActiveRecord join on other column than 'id'

If somebody is looking for the solution I used is to override the primaryKey() function of the GO_Base_Db_ActiveRecord class for the model class.
Don't know if this is the best solution but it works.
by huisvanheden
Fri Apr 18, 2014 10:57 am
Forum: Development Chats
Topic: ActiveRecord join on other column than 'id'
Replies: 3
Views: 2023

ActiveRecord join on other column than 'id'

I have two models that need to be joined but there I don't seem to find how I can join them if the key of the second table is not labeled as 'id'. I created the models and controllers for both and want to show it in a grid using a json store using the GO.url router. The error that is shown when doin...

cron