diff options
author | Michael Francis <edude03@gmail.com> | 2011-07-09 23:26:27 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-07-09 23:26:27 -0400 |
commit | a8bda745c77c38ce7c3bcf719d6d821cd35766f3 (patch) | |
tree | f0cf4be97dafcf235f3ff9f92c5b3989b2cc58ef /models | |
parent | 29b78de55356df916dc44c014e86a777fa23cc28 (diff) | |
download | otakuhub-a8bda745c77c38ce7c3bcf719d6d821cd35766f3.tar.xz |
Leverage previously defined Mongo Connection
Diffstat (limited to 'models')
-rw-r--r-- | models/Anime.php | 2 | ||||
-rw-r--r-- | models/Kdrama.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/models/Anime.php b/models/Anime.php index 2798a43..4543826 100644 --- a/models/Anime.php +++ b/models/Anime.php @@ -3,7 +3,7 @@ namespace app\models; class Anime extends \lithium\data\Model { - protected $_meta = array('key' => '_id', 'source' => 'anime'); + protected $_meta = array('key' => '_id', 'source' => 'anime', 'connection' => 'mongo'); public static function search($query, $page = 1, $by = 'title') { diff --git a/models/Kdrama.php b/models/Kdrama.php index 9d3ddf7..f1eee22 100644 --- a/models/Kdrama.php +++ b/models/Kdrama.php @@ -3,7 +3,7 @@ namespace app\models; class Kdrama extends \lithium\data\Model { - protected $_meta = array('key' => '_id', 'source' => 'kdrama'); + protected $_meta = array('key' => '_id', 'source' => 'kdrama', 'connection' => 'mongo'); public static function search($query, $page = 1, $by = 'title') { |