|  | @@ -137,16 +137,13 @@ abstract class LuDbo implements \JsonSerializable {
 | 
		
	
		
			
			| 137 | 137 |  
 | 
		
	
		
			
			| 138 | 138 |              $value = null;
 | 
		
	
		
			
			| 139 | 139 |              if (isset($json[$name])) {
 | 
		
	
		
			
			| 140 |  | -                $value = static::deserializeValue($json[$name], $type);
 | 
		
	
		
			
			|  | 140 | +                $value = static::deserializeValue($json[$name], $type, $doc->getConstraints());
 | 
		
	
		
			
			| 141 | 141 |              }
 | 
		
	
		
			
			| 142 | 142 |  
 | 
		
	
		
			
			| 143 | 143 |              if ($doc->isNotNull() && is_null($value)) {
 | 
		
	
		
			
			| 144 | 144 |                  throw new LuDboConstraintException("Field '" . $name . "' can not be null");
 | 
		
	
		
			
			| 145 | 145 |              }
 | 
		
	
		
			
			| 146 | 146 |  
 | 
		
	
		
			
			| 147 |  | -            if (!is_null($doc) && !is_null($value)) {
 | 
		
	
		
			
			| 148 |  | -                $value->checkConstraints($doc->getConstraints());
 | 
		
	
		
			
			| 149 |  | -            }
 | 
		
	
		
			
			| 150 | 147 |              $property->setAccessible(true);
 | 
		
	
		
			
			| 151 | 148 |              $property->setValue($dbo, $value);
 | 
		
	
		
			
			| 152 | 149 |          }
 |