one question: what is confirmed? is it a scope? can you try to just call the ‘proposed’, just that one… and then lets move on…
For me, I dont really understand that if the table that links both tables is named tbl_models_events, how come the condition is proposed_proposed.status_id instead of tbl_models_events.status_id… can you drop the resulted SQL here?
second question: why dont you have a an Address relation to the event? You could easily build your relation to the address like this:
// on relations Event model
// now i can access
now i’m not sure if this is double work and I only need one relation to get all models assigned to event, but in my event i am separating models in confirmd and proposed, in order to keep organized and easier to work with for the booker…
I still have no clue how to use the scopes for more advanced usage than filtering simple relations, like status active, which i have in my Person model
I’m far from an expert, but try and copy my above code, and you don’t have to declare related as it automatically fetches the relation through lazy loading. I render my file with only one model and holding those relations so in my view i can call $model->relation->column but only render (