Ah, I see now - it's because of the $pothole->toJSON() isn't it? Possibly a better thing to do is add a method to BaseClass to fetch all the public columns and then can avoid hand crafting JSON.