[eluser]introvert[/eluser]
Ok,
I figured out that each logged error goes away if I define every column in model $validation rules.
I'm not sure if this is a fix for my problem: is this normal - expected behavior or should I look somewhere else?
The new CI behavior to log each such lang() event as an error is really retarded, and I hope they change this soon.
Another thing:
where I have $has_one relations in my model, I have to define the column as 'column_id' (with trailing id), where $has_many relation could be defined just with 'column'.
For instance $has_many has to be:
Code:
var $has_many = array('Site');
var $validation = array('site' => array('label' => 'Site'));
in has_one case, for the error to go away:
Code:
var $has_one = array('Site');
var $validation = array('site_id' => array('label' => 'Site'));
Is this normal?
It would make more logic to have 'site' in both cases, since the Model knows that its in relation with Site model.
Thanks for help