Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
482
Widok
0
31/08/2022 9:32 am
Topic starter
error kohana
1 Answer
0
31/08/2022 9:33 am
Topic starter
- edit modules/orm/classes/Kohana/ORM.php
- find
public function has($alias, $far_keys = NULL) { $count = $this->count_relations($alias, $far_keys); if ($far_keys === NULL) { return (bool) $count; } else { return $count === count($far_keys); } }
3. relace with
-
public function has($alias, $far_keys = NULL) { $count = $this->count_relations($alias, $far_keys); if ($far_keys === NULL) { return (bool) $count; } else { if (is_array($far_keys) OR $far_keys instanceof Countable) { $keys = count($far_keys); } else { $keys = 1; } return $keys === $count; } }