I confirm that:
(Please fill in the actual values from your environment)
| Key | Value | Comments |
|---|---|---|
| PHP version: | 5.6 | |
| Contao version: | 3.5.27 | |
| MetaModels version: | core master (a15) | |
| Installation via composer: | yes | |
| Installed MetaModels packages: | bundle_all | |
| DCG version: | master (b39) |
look at https://github.com/contao-community-alliance/dc-general/issues/350
at the "first save" (create) we doesn´t create the alias - we create the alias with the "second save" (update)
the MetaModels.php call the method modelSaved if is isAttributeSet true
https://github.com/MetaModels/core/blob/08b502234efe150003450cf01b5611b00f9ebd57/src/MetaModels/MetaModel.php#L1035
but at Item.php
https://github.com/MetaModels/core/blob/08b502234efe150003450cf01b5611b00f9ebd57/src/MetaModels/Item.php#L245
we have different keys at array $this->arrData between create e.g.
Array ( [name] => a8 [vorname] => b8 [published] => 1 [tstamp] => 1496848172 [id] => 10 )
and update e.g.
Array ( [id] => 10 [pid] => 0 [sorting] => 0 [tstamp] => 1496848200 [name] => a8 [vorname] => b8 [email] => [published] => 1 [abteilung] => [alias] => )