Robotlegs problem with complex command
Hy I have 2 injections with the same type "String" and it doesn't work. How to make it work?
One solution is to add both strings into an object and pass like that. Other solutions?
thanks

	public class GetItemsCommand extends TottysCommand
	{	
		// models
		[Inject] public var listModel:ListModel;
		[Inject] public var itemModel:ItemModel;
		
		[Inject] public var key:String; // <----
		[Inject] public var itemType:String; // <----
		
		override public function execute():void{
			debug('Executing GetItemsCommand', false);
			
			if(this.hasOwnProperty(itemType + 'Model')){
				this[itemType + 'Model'].checkIfExistAndDispatchItemsForKey(key);
			}
		}
	}
Robotlegs problem with complex command
===

Hy I have 2 injections with the same type "String" and it doesn't work. How to make it work?
One solution is to add both strings into an object and pass like that. Other solutions?
thanks

	public class GetItemsCommand extends TottysCommand
	{	
		// models
		[Inject] public var listModel:ListModel;
		[Inject] public var itemModel:ItemModel;
		
		[Inject] public var key:String; // <----
		[Inject] public var itemType:String; // <----
		
		override public function execute():void{
			debug('Executing GetItemsCommand', false);
			
			if(this.hasOwnProperty(itemType + 'Model')){
				this[itemType + 'Model'].checkIfExistAndDispatchItemsForKey(key);
			}
		}
	}