View Single Post
  #1 (permalink)  
Old June 3rd, 2011, 01:14 PM
AwakenedYes AwakenedYes is offline
Registered User
Join Date: Jun 2011
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 5 - factoryTest.php

I am attempting to get the result "Bob Smith is enrolled in CS101" as suggested,
but I am getting " 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