Problem accessing a specific object field

Which database are you using?

First reaction is that there’s some sort of mismatch between your model and the database itself.

It might be worth checking to see the SQL definition for the Periodos model.

Specifically, I suggest verifying that the periodo_id column in the Periodos table is actually an integer and that periodo_data is a date field.