@@ 190-198 (lines=9) @@ | ||
187 | } |
|
188 | ||
189 | $model = $this->findEntityModel($className); |
|
190 | if (!$model) { |
|
191 | throw new RuntimeException( |
|
192 | sprintf( |
|
193 | 'A model for "%s" was not found.%s', |
|
194 | $className, |
|
195 | $this->lockObject->isLocked() ? ' Config models are locked.' : '' |
|
196 | ) |
|
197 | ); |
|
198 | } |
|
199 | ||
200 | return $model; |
|
201 | } |
|
@@ 222-231 (lines=10) @@ | ||
219 | } |
|
220 | ||
221 | $model = $this->findFieldModel($className, $fieldName); |
|
222 | if (!$model) { |
|
223 | throw new RuntimeException( |
|
224 | sprintf( |
|
225 | 'A model for "%s::%s" was not found.%s', |
|
226 | $className, |
|
227 | $fieldName, |
|
228 | $this->lockObject->isLocked() ? ' Config models are locked.' : '' |
|
229 | ) |
|
230 | ); |
|
231 | } |
|
232 | ||
233 | return $model; |
|
234 | } |