|
@@ 150-156 (lines=7) @@
|
| 147 |
|
$parent = $this->scope->getOrCreateModel(); |
| 148 |
|
} elseif ($this->scope === true) |
| 149 |
|
$parent = \Seufert\Hamle\Scope::get(0); |
| 150 |
|
if (count($this->filt['tag'])) |
| 151 |
|
$parent = \Seufert\Hamle\Run::modelTypeTags( |
| 152 |
|
$this->filt['tag'], |
| 153 |
|
$this->sortlimit['sort'], |
| 154 |
|
$this->sortlimit['limit'], |
| 155 |
|
$this->sortlimit['offset'] |
| 156 |
|
); |
| 157 |
|
if (count($this->filt['id'])) |
| 158 |
|
if (isset($this->filt['id']['*']) && count($this->filt['id']['*']) === 1) |
| 159 |
|
$parent = \Seufert\Hamle\Run::modelId( |
|
@@ 165-171 (lines=7) @@
|
| 162 |
|
$this->sortlimit['limit'], |
| 163 |
|
$this->sortlimit['offset'] |
| 164 |
|
); |
| 165 |
|
else |
| 166 |
|
$parent = \Seufert\Hamle\Run::modelTypeId( |
| 167 |
|
$this->filt['id'], |
| 168 |
|
$this->sortlimit['sort'], |
| 169 |
|
$this->sortlimit['limit'], |
| 170 |
|
$this->sortlimit['offset'] |
| 171 |
|
); |
| 172 |
|
if($this->sub) |
| 173 |
|
return $this->sub->getOrCreateModel($parent); |
| 174 |
|
if(!$parent) |