| 1 | <?php |
||
| 24 | trait AttachmentRelations |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * An attachment is belong to one issue (inverse relationship of Project\Issue::attachments). |
||
| 28 | * |
||
| 29 | * @return Model\Project\Issue |
||
| 30 | */ |
||
| 31 | public function issue() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * An attachment has one user upladed to (inverse relationship of User::attachments). |
||
| 38 | * |
||
| 39 | * @return Model\User |
||
| 40 | */ |
||
| 41 | public function user() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * An attachment can belong to a comment (inverse relationship of Comments::attachments). |
||
| 48 | * |
||
| 49 | * @return Model\Project\Issue\Comment |
||
| 50 | */ |
||
| 51 | public function comment() |
||
| 55 | |||
| 56 | abstract public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null); |
||
| 57 | } |
||
| 58 |