bugfix
This commit is contained in:
@@ -461,7 +461,7 @@ class DatabaseEntityHandler implements Persistable {
|
||||
|
||||
$doInsert = false;
|
||||
foreach ($nmRelation->getProperties($this) as $property) {
|
||||
if ($properties !== null || !in_array($property->getName(), $properties)) {
|
||||
if ($properties !== null && !in_array($property->getName(), $properties)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -124,6 +124,14 @@ class RouterCache extends Router {
|
||||
}
|
||||
";
|
||||
|
||||
$directory = dirname($file);
|
||||
if (!is_dir($directory)) {
|
||||
if (!mkdir($directory, 775, true)) {
|
||||
$this->logger->severe("Could not create directory: $directory");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (@file_put_contents($file, $code) === false) {
|
||||
$this->logger->severe("Could not write Router cache file: $file");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user