- Bugfixes made while working on lean/console
This commit is contained in:
		
							parent
							
								
									338b599d39
								
							
						
					
					
						commit
						9ebf7b05d7
					
				| @ -30,4 +30,5 @@ interface AdapterInterface { | ||||
|     public function tableSyntax() : array; | ||||
|     public function whitelistAttributes(array &$parameters) : void; | ||||
|     public function generateAlterColumn(FieldDefinition $definition, array $field) : string|\Stringable; | ||||
|     public function splitAlterQuery() : bool; | ||||
| } | ||||
|  | ||||
| @ -229,7 +229,7 @@ class MsSQL implements AdapterInterface { | ||||
|                 return Ulmus::convertObject($value); | ||||
| 
 | ||||
|             case is_array($value): | ||||
|                 return json_encode($array); | ||||
|                 return json_encode($value); | ||||
| 
 | ||||
|             case is_bool($value): | ||||
|                 return (int) $value; | ||||
| @ -252,4 +252,9 @@ class MsSQL implements AdapterInterface { | ||||
|     { | ||||
|         return QueryBuilder\MssqlQueryBuilder::class; | ||||
|     } | ||||
| 
 | ||||
|     public function splitAlterQuery() : bool | ||||
|     { | ||||
|         return false; | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -175,4 +175,9 @@ class MySQL implements AdapterInterface { | ||||
|     { | ||||
|         return "InnoDB"; | ||||
|     } | ||||
| 
 | ||||
|     public function splitAlterQuery() : bool | ||||
|     { | ||||
|         return false; | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -213,4 +213,9 @@ class SQLite implements AdapterInterface { | ||||
|             $definition->getSqlParams(), | ||||
|         ]); | ||||
|     } | ||||
| 
 | ||||
|     public function splitAlterQuery() : bool | ||||
|     { | ||||
|         return true; | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -222,6 +222,12 @@ class EntityCollection extends \ArrayObject implements \JsonSerializable { | ||||
|         return $list; | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
|     public function walk(Callable $callback) : self | ||||
|     { | ||||
|         return $this->filtersCollection($callback); | ||||
|     } | ||||
| 
 | ||||
|     public function sum($field) : float|int | ||||
|     { | ||||
|         return array_sum($this->column($field)); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user