Commit 5c48add
committed
Skip embedded fields in embeddables
This change skips the creation of mapped fields inside embeddables.
Consider the PHP Money class:
```php
public class Invoice {
/**
* @var Money
*
* @Orm\Embedded(class="Money\Money")
*/
private $total;
}
```
```php
final class Money implements \JsonSerializable {
/**
* @var Currency
*/
private $currency;
}
```
Here, Money has the mapped field `Currency`. In doctrine Metadata,
this is correctly reflected as `total.currency`.
The EntityRegenerator declares a private field `$total.currency` afterwards.
The changeset suppresses this behaviour by skipping fields containing a
dot as is done a few lines below.1 parent 08fabae commit 5c48add
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
0 commit comments