File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
Zend/tests/property_hooks Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,6 @@ echo $category2->name . "\n";
7070// same category instance returned
7171var_dump ($ category1 === $ category2 );
7272
73- // can't be wrong, huh?
74- var_dump ($ product );
75-
7673// cannot set twice
7774try {
7875 $ categoryId ->setValue ($ product , '420 ' );
@@ -86,20 +83,4 @@ hit database
8683Category 42
8784Category 42
8885bool(true)
89- object(LazyProduct)#2 (5) {
90- ["name"]=>
91- string(14) "Iced Chocolate"
92- ["price"]=>
93- float(1.99)
94- ["category"]=>
95- object(Category)#8 (1) {
96- ["name"]=>
97- string(11) "Category 42"
98- }
99- ["dbApi":"LazyProduct":private]=>
100- object(MockDbConnection)#6 (0) {
101- }
102- ["categoryId":"LazyProduct":private]=>
103- string(2) "42"
104- }
10586Error: Cannot modify readonly property LazyProduct::$categoryId
You can’t perform that action at this time.
0 commit comments