Chapter 5 - factoryTest.php
I am attempting to get the result "Bob Smith is enrolled in CS101" as suggested,
but I am getting "...is not enrolled..."!
Having checked the errata (which seems incomplete!) and changed _loadCourses from 'Collection' to 'CourseCollection' as parameter type in class.Student.php, I still get "not enrolled" even when in class.StudentFactory.php - getCoursesForStudent I can echo out exactly the three correct courses to the web page.
Any suggestions greatly appreciated.
Whoops - error found! Forgot to allocate the member variables - so, forget this
Last edited by AwakenedYes; June 6th, 2011 at 09:14 PM..
Reason: Simple typo