[eluser]Genki1[/eluser]
Hi Wanwizard,
In DM 1.8.1, I'm receiving this error...
Quote:A PHP Error was encountered
Severity: Warning
Message: Illegal offset type in isset or empty
Filename: libraries/datamapper.php
Line Number: 4394
...due to the first letter of the
$related_field value being capitalized.
For example, if $related_field = 'Sys_lookups' I get the error.
The error goes away when I insert this at line 4394:
$related_field = strtolower($related_field);
(I think the strtolower() may be better placed at line 4370.)
I've searched my code and don't find any models where the relationship names in
$has_one or
$has_many contain an uppercase first character.
This started after I started using the custom ITFK as shown below, however I have made many other changes to my code as well, so I don't know if this is the cause:
Code:
var $has_one = array(
'user',
'sys_lookup' => array(
'join_other_as' => 'account_type') //ITFK is account_type_id, not sys_lookup_id
);
I don't see this situation mentioned in the DM Change Log.
Can you provide any insight?