/** * Erzeugt die Entity auf Basis eines XML Elements aus der Mapping-Konfiguration * @param Module $module * @param SimpleXMLElement $entity * @return EntityDefinition * @throws Exception */ public static function createByXml(Module $module, SimpleXMLElement $entity) { $temp = new EntityDefinition(); $temp->module = $module; $temp->buildEntity($entity); return $temp; }