Check your Question.php (or maybe QuestionPeer.php, I can't rememeber which has that function) and see if you have that function in there. If not, do a checkout of Askeet for that day and update your local copy with any missing functions. I found throughout the askeet days that there was often files added to the SVN tags for the day that the tutorial never covered.
Thank you very much. I found that the Question.php covered in the tutorial is different from what is in SVN tags. However, after making the necessary changes I am getting a different error:
PHP Fatal error: Call to undefined method Question::setStrippedTitle() in F:\home\sfprojects\askeet\lib\model\Question.php on line 22
Line 22 above is:
$this->setStrippedTitle(myTools::stripText($v));
How do you do a checkout of Askeet for that a particular day - I have not tried it and would like to know if there is a document I should refer.
I get exactly the same error.
Call to undefined method Question::setStrippedTitle() in F:\home\sfprojects\askeet\lib\model\Question.php on line 22
How did you solve this problem?
General Question (SVN):
How can I checkout askeet for another day than the first.
When I try "svn co http://svn.askeet.com/tags/release_day_1/ askeet/" it tells me, askeet is the working version of another URL.
kmedlin Messages: 78 Registered: April 2007 Location: Raleigh, NC USA
Member
Well I have solved this issue... (for both stripped title and for the interested users parts)
The tutorial fails to mention that you'll need to run during the getInterestedUsers section:
Step 1 - Update Your schema.xml
Step 2 -
symfony propel-build-model
Step 3 -
symfony propel-build-sql
Step 4 -
symfony propel-insert-sql
Once I did that I could load my fixtures and everything worked fine.
Every time you change the model you must updated it by running the propel-build-model command or else the om baseInterest (in this case) won't update properly.
tely Messages: 37 Registered: June 2007 Location: France
Member
Ok, got the solution.
Remember to clear cache before running the propel-build-model command =)
This is a stupid error that can waste a lot of time ! I did the experience !
The error:
PHP Fatal error: Call to undefined method Question::getInterestedUsers() in F:\home\sfprojects\askeet\lib\model\Interest.php on line 29
means that the class didn't integrate the "interested_users" column. =)