It looks like you're new here. If you want to get involved, click one of these buttons!
I declare property_type in the foreign key:
then access it from here:
or if I use:
and the function:
I always got:
Could you please explain why the queries showed twice or thrice?
Unfortunately it's tough to tell from the screenshots and code to properly debug. I would start from where it's originally called and debug from there. It may take you into the internals of the MY_Model class.