Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | public function translateFieldsSubQuery($lang = null) |
||
46 | { |
||
47 | $lang = ($lang) ? $lang : LANG; |
||
48 | |||
49 | $fields = []; |
||
50 | foreach($this->translateFields as $field) { |
||
51 | $fields[] = "(SELECT tr.value FROM [$this->translateModel] AS tr WHERE tr.foreign_id = p.id AND tr.lang = '$lang' AND tr.key = '$field') AS $field"; |
||
52 | } |
||
53 | return $fields; |
||
54 | } |
||
55 | |||
56 | } |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.