Browse Source

Define initial array value.

Refs #5257
Mark Story 11 years ago
parent
commit
3c8d033c03
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ORM/EntityValidator.php

+ 1 - 1
src/ORM/EntityValidator.php

@@ -51,6 +51,7 @@ class EntityValidator {
 			return [];
 		}
 
+		$map = [];
 		foreach ($include['associated'] as $key => $options) {
 			if (is_int($key) && is_scalar($options)) {
 				$key = $options;
@@ -66,7 +67,6 @@ class EntityValidator {
 				];
 			}
 		}
-
 		return $map;
 	}