/**
* Sets the right property command based on the $action.
*
* @param string $action
* @param string $class
* @param string $property
* @return QueryInterface
*/
protected function manageProperty($action, $class, $property, $type = null, $linked = null)
{
$commandClass = $this->getCommandClass("property." . $action);
$this->command = new $commandClass($property, $type, $linked);
$this->command->on($class);
return $this->command;
}