source/Spiral/Models/SchematicEntity.php 1 location
|
@@ 71-78 (lines=8) @@
|
| 68 |
|
/** |
| 69 |
|
* {@inheritdoc} |
| 70 |
|
*/ |
| 71 |
|
protected function getMutator(string $field, string $mutator) |
| 72 |
|
{ |
| 73 |
|
if (isset($this->schema[self::SH_MUTATORS][$mutator][$field])) { |
| 74 |
|
return $this->schema[self::SH_MUTATORS][$mutator][$field]; |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
return null; |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
/** |
| 81 |
|
* Method used while entity static analysis to describe model related property using even |
source/Spiral/ODM/DocumentEntity.php 1 location
|
@@ 396-406 (lines=11) @@
|
| 393 |
|
* |
| 394 |
|
* @see CompositionDefinition |
| 395 |
|
*/ |
| 396 |
|
protected function getMutator(string $field, string $mutator) |
| 397 |
|
{ |
| 398 |
|
/** |
| 399 |
|
* Every document composition is valid accessor but defined a bit differently. |
| 400 |
|
*/ |
| 401 |
|
if (isset($this->schema[self::SH_COMPOSITIONS][$field])) { |
| 402 |
|
return $this->schema[self::SH_COMPOSITIONS][$field]; |
| 403 |
|
} |
| 404 |
|
|
| 405 |
|
return parent::getMutator($field, $mutator); |
| 406 |
|
} |
| 407 |
|
|
| 408 |
|
/** |
| 409 |
|
* {@inheritdoc} |