@@ -120,6 +120,9 @@ discard block |
||
| 120 | 120 | $this->app['config']->set('database.default', $defaultConnection); |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | + /** |
|
| 124 | + * @param string $connection |
|
| 125 | + */ |
|
| 123 | 126 | protected function getSchemaManager($connection = null) |
| 124 | 127 | { |
| 125 | 128 | if (isset($connection)) { |
@@ -131,6 +134,9 @@ discard block |
||
| 131 | 134 | return $connection->getDoctrineSchemaManager(); |
| 132 | 135 | } |
| 133 | 136 | |
| 137 | + /** |
|
| 138 | + * @return \Doctrine\DBAL\Platforms\AbstractPlatform |
|
| 139 | + */ |
|
| 134 | 140 | protected function getDatabasePlatform($connection = null) |
| 135 | 141 | { |
| 136 | 142 | if (isset($connection)) { |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | protected $model; |
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | - * @param App $app |
|
| 17 | 16 | */ |
| 18 | 17 | public function __construct(EloquentModel $model) |
| 19 | 18 | { |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | * |
| 29 | 29 | * @param string $modelName |
| 30 | 30 | * |
| 31 | - * @return Illuminate\Database\Eloquent\Model |
|
| 31 | + * @return EloquentModel |
|
| 32 | 32 | */ |
| 33 | 33 | public function getModelInstance($modelName) |
| 34 | 34 | { |
@@ -26,7 +26,6 @@ discard block |
||
| 26 | 26 | protected $skipCriteria = false; |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * @param App $app |
|
| 30 | 29 | */ |
| 31 | 30 | public function __construct(EloquentModel $model) |
| 32 | 31 | { |
@@ -35,7 +34,7 @@ discard block |
||
| 35 | 34 | } |
| 36 | 35 | |
| 37 | 36 | /** |
| 38 | - * @return mixed |
|
| 37 | + * @return EloquentModel |
|
| 39 | 38 | */ |
| 40 | 39 | public function getModel() |
| 41 | 40 | { |
@@ -76,7 +75,7 @@ discard block |
||
| 76 | 75 | |
| 77 | 76 | /** |
| 78 | 77 | * @param array $data |
| 79 | - * @return mixed |
|
| 78 | + * @return EloquentModel |
|
| 80 | 79 | */ |
| 81 | 80 | public function create(array $data) |
| 82 | 81 | { |
@@ -104,7 +103,7 @@ discard block |
||
| 104 | 103 | |
| 105 | 104 | /** |
| 106 | 105 | * @param $id |
| 107 | - * @return mixed |
|
| 106 | + * @return integer |
|
| 108 | 107 | */ |
| 109 | 108 | public function delete($id) |
| 110 | 109 | { |
@@ -150,7 +149,6 @@ discard block |
||
| 150 | 149 | /** |
| 151 | 150 | * @param $field |
| 152 | 151 | * @param $value |
| 153 | - * @param array $columns |
|
| 154 | 152 | * @return mixed |
| 155 | 153 | */ |
| 156 | 154 | public function findBy($field, $value, array $with = array()) |
@@ -168,7 +166,6 @@ discard block |
||
| 168 | 166 | /** |
| 169 | 167 | * @param $field |
| 170 | 168 | * @param $value |
| 171 | - * @param array $columns |
|
| 172 | 169 | * @return mixed |
| 173 | 170 | */ |
| 174 | 171 | public function findByOrFail($field, $value, array $with = array()) |
@@ -236,7 +233,7 @@ discard block |
||
| 236 | 233 | } |
| 237 | 234 | |
| 238 | 235 | /** |
| 239 | - * @return mixed |
|
| 236 | + * @return Collection |
|
| 240 | 237 | */ |
| 241 | 238 | public function getCriteria() |
| 242 | 239 | { |