Add test to show that virtual association properties break
MODIFY
tests/test_app/src/Model/Entity/Wheel.php
tests/test_app/src/Model/Entity/Wheel.php
@@ -24,4 +24,13 @@ class Wheel extends Entity {
return 'Virtual Two';
}
+ /**
+ * @param \App\Model\Entity\Wheel[] $wheels
+ *
+ * @return \App\Model\Entity\Wheel[]
+ */
+ protected function _getWheels($wheels = []) {
+ return $wheels;
+ }
+
}

MODIFY
tests/test_files/Model/Entity/Wheel.php
tests/test_files/Model/Entity/Wheel.php
@@ -34,4 +34,13 @@ class Wheel extends Entity {
return 'Virtual Two';
}
+ /**
+ * @param \App\Model\Entity\Wheel[] $wheels
+ *
+ * @return \App\Model\Entity\Wheel[]
+ */
+ protected function _getWheels($wheels = []) {
+ return $wheels;
+ }
+
}

Add test to show that virtual association properties break