From 46bb95f632b5d0dd2312756f47fd79888f4cc857 Mon Sep 17 00:00:00 2001 From: Andrii Vasyliev Date: Fri, 27 Jan 2017 14:41:45 +0000 Subject: [PATCH] removed index and joinIndex from ActiveRecord --- src/ActiveRecord.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/ActiveRecord.php b/src/ActiveRecord.php index c5bc38f..90c28ba 100644 --- a/src/ActiveRecord.php +++ b/src/ActiveRecord.php @@ -119,20 +119,6 @@ public function attributes() return array_values($attributes); } - /** - * @return string the name of the index this record is stored in - */ - public static function index() - { - // return Inflector::pluralize(Inflector::camel2id(StringHelper::basename(get_called_class()), '-')); - return mb_strtolower(StringHelper::basename(get_called_class()) . 's'); - } - - public static function joinIndex() - { - return static::index(); - } - /** * Creates an active record instance. *