@@ -128,6 +128,17 @@ |
||
| 128 | 128 | }); |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | + /** |
|
| 132 | + * @param string $related |
|
| 133 | + * @param string $foreignKey |
|
| 134 | + */ |
|
| 131 | 135 | abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
| 136 | + |
|
| 137 | + /** |
|
| 138 | + * @param string $related |
|
| 139 | + * @param string $table |
|
| 140 | + * @param string $foreignKey |
|
| 141 | + * @param string $otherKey |
|
| 142 | + */ |
|
| 132 | 143 | abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null); |
| 133 | 144 | } |
@@ -182,6 +182,10 @@ |
||
| 182 | 182 | return $query; |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | + /** |
|
| 186 | + * @param string $related |
|
| 187 | + * @param string $foreignKey |
|
| 188 | + */ |
|
| 185 | 189 | abstract public function hasOne($related, $foreignKey = null, $localKey = null); |
| 186 | 190 | abstract public function isPrivateInternal(); |
| 187 | 191 | } |
@@ -32,5 +32,10 @@ |
||
| 32 | 32 | return $this->hasOne('Tinyissue\Model\Permission', 'id', 'permission_id'); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $related |
|
| 37 | + * @param string $foreignKey |
|
| 38 | + * @param string $localKey |
|
| 39 | + */ |
|
| 35 | 40 | abstract public function hasOne($related, $foreignKey = null, $localKey = null); |
| 36 | 41 | } |
@@ -62,6 +62,19 @@ |
||
| 62 | 62 | ); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @param string $related |
|
| 67 | + * @param string $foreignKey |
|
| 68 | + * @param string $localKey |
|
| 69 | + */ |
|
| 65 | 70 | abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
| 71 | + |
|
| 72 | + /** |
|
| 73 | + * @param string $related |
|
| 74 | + * @param string $table |
|
| 75 | + * @param string $foreignKey |
|
| 76 | + * @param string $otherKey |
|
| 77 | + * @param string $relation |
|
| 78 | + */ |
|
| 66 | 79 | abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null); |
| 67 | 80 | } |
@@ -62,7 +62,23 @@ |
||
| 62 | 62 | return $this->belongsToMany('Tinyissue\Model\Project', 'projects_kanban_tags', 'project_id', 'tag_id'); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @param string $related |
|
| 67 | + * @param string $foreignKey |
|
| 68 | + */ |
|
| 65 | 69 | abstract public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null); |
| 70 | + |
|
| 71 | + /** |
|
| 72 | + * @param string $related |
|
| 73 | + * @param string $foreignKey |
|
| 74 | + */ |
|
| 66 | 75 | abstract public function hasMany($related, $foreignKey = null, $localKey = null); |
| 76 | + |
|
| 77 | + /** |
|
| 78 | + * @param string $related |
|
| 79 | + * @param string $table |
|
| 80 | + * @param string $foreignKey |
|
| 81 | + * @param string $otherKey |
|
| 82 | + */ |
|
| 67 | 83 | abstract public function belongsToMany($related, $table = null, $foreignKey = null, $otherKey = null, $relation = null); |
| 68 | 84 | } |
@@ -182,6 +182,10 @@ |
||
| 182 | 182 | return $query; |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | + /** |
|
| 186 | + * @param string $related |
|
| 187 | + * @param string $foreignKey |
|
| 188 | + */ |
|
| 185 | 189 | abstract public function hasOne($related, $foreignKey = null, $localKey = null); |
| 186 | 190 | abstract public function isPrivateInternal(); |
| 187 | 191 | } |
@@ -93,5 +93,8 @@ |
||
| 93 | 93 | |
| 94 | 94 | abstract public function issuesCreatedBy(); |
| 95 | 95 | |
| 96 | + /** |
|
| 97 | + * @param string $key |
|
| 98 | + */ |
|
| 96 | 99 | abstract public function permission($key); |
| 97 | 100 | } |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * |
| 57 | 57 | * @param string $key |
| 58 | 58 | * |
| 59 | - * @return mixed|array |
|
| 59 | + * @return \Tinyissue\Model\Project |
|
| 60 | 60 | */ |
| 61 | 61 | public function getParams($key = null) |
| 62 | 62 | { |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Illuminate\Support\Collection; |
| 15 | 15 | use Tinyissue\Extensions\Model\FetchTagsTrait; |
| 16 | -use Tinyissue\Model; |
|
| 17 | 16 | use Tinyissue\Model\Project; |
| 18 | 17 | |
| 19 | 18 | /** |