public static function findMultipleByPaths($arrPaths, array $arrOptions = array()) { if (!is_array($arrPaths) || empty($arrPaths)) { return null; } $t = static::$strTable; if (!isset($arrOptions['order'])) { $arrOptions['order'] = \Database::getInstance()->findInSet("{$t}.path", $arrPaths); } return static::findBy(array("{$t}.path IN(" . implode(',', array_fill(0, count($arrPaths), '?')) . ")"), $arrPaths, $arrOptions); }