src/View/Block/Row.php
private function initScope(array $columns, array $fetch){
		$scope = [];
		foreach( $columns as $name=>$value ){
			$scope[$name] = ( isset($fetch[$name]) ) ? new Attribute($fetch[$name], false) : new Attribute($value, true);
			// Allow set null to field.
			if( $value === null ) $scope[$name]->allowNull();
		}
		return $scope;
	}
private function initScope(array $columns, array $fetch){
		$scope = [];
		foreach( $columns as $name=>$value ){
			$scope[$name] = ( isset($fetch[$name]) ) ? new Attribute($fetch[$name], false) : new Attribute($value, true);
			// Allow set null to field.
			if( $value === null ) $scope[$name]->allowNull();
		}
		return $scope;
	}
private function initScope ( array $ columns , array $ fetch ) { $ scope = [ ] ; foreach ( $ columns as $ name => $ value ) { $ scope [ $ name ] = ( isset ( $ fetch [ $ name ] ) ) ? new Attribute ( $ fetch [ $ name ] , false ) : new Attribute ( $ value , true ) ; // Allow set null to field. if ( $ value === null ) $ scope [ $ name ] -> allowNull ( ) ; } return $ scope ; }
Create outher scope for block, this occur only in row block.
Create outher scope for block this occur only in row block .