I am running the following code:
$attributes = $xmlTable2->attributes();
foreach ($attributes as $key => $value) {
$xmlTable1->addAttribute($key, $value);
}
But it causes an error:
Warning: SimpleXMLElement::addAttribute(): Attribute already exists in ... on line 100
Buildfile: /.../vendor/propel/propel1/generator/build.xml
How do I override the value of an existing attribute?