Properly pass the bot_name to the entity constructor.

parent 20cc1b9c
......@@ -141,7 +141,7 @@ abstract class Entity
$sub_entities = $this->subEntities();
if (isset($sub_entities[$property_name])) {
return new $sub_entities[$property_name]($property);
return new $sub_entities[$property_name]($property, $this->getProperty('bot_name'));
}
return $property;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment