added more columns to spreadsheet exports (#2413)
This commit is contained in:
@@ -531,8 +531,22 @@ class Project implements EntityWithMetaFields
|
||||
{
|
||||
if ($this->id) {
|
||||
$this->id = null;
|
||||
$this->teams = new ArrayCollection();
|
||||
$this->meta = new ArrayCollection();
|
||||
}
|
||||
|
||||
$currentTeams = $this->teams;
|
||||
$this->teams = new ArrayCollection();
|
||||
/** @var Team $team */
|
||||
foreach ($currentTeams as $team) {
|
||||
$this->addTeam($team);
|
||||
}
|
||||
|
||||
$currentMeta = $this->meta;
|
||||
$this->meta = new ArrayCollection();
|
||||
/** @var ProjectMeta $meta */
|
||||
foreach ($currentMeta as $meta) {
|
||||
$newMeta = clone $meta;
|
||||
$newMeta->setEntity($this);
|
||||
$this->setMetaField($newMeta);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user