Log message #1540293

# At Username Text
# Jun 2nd 2010, 23:46 aaroninfidel savant: ?
# Jun 2nd 2010, 23:45 aaroninfidel is there a way to ignore it?
# Jun 2nd 2010, 23:45 aaroninfidel because I'm not specifying my id.
# Jun 2nd 2010, 23:45 rolandpish I declared both models with the corresponding $hasMany and $belongsTo variables. My example is a Student has many ForeignSchool. When in students_controller.php I do a: $foreignSchools = $this->Student->ForeignSchool->find('all'); $this->set(compact('foreignSchools')); the $foreignSchools variable in the view file is showing all the foreign schools but not the ones associated to the current student.
# Jun 2nd 2010, 23:45 aaroninfidel I get this: Undefined index: id [CORE/cake/libs/model/model.php, line 1325]
# Jun 2nd 2010, 23:45 savant whats the issue?
# Jun 2nd 2010, 23:44 aaroninfidel savant: line 66: http://bin.cakephp.org/view/1093512669
# Jun 2nd 2010, 23:42 rolandpish I'm having a problem with a one-to-many relationship. I know it must be a simple thing but I'm not able to know what is happening.
# Jun 2nd 2010, 23:39 aaroninfidel well, let me pastebin
# Jun 2nd 2010, 23:39 aaroninfidel haha
# Jun 2nd 2010, 23:39 aaroninfidel oh poop
# Jun 2nd 2010, 23:36 savant lol
# Jun 2nd 2010, 23:36 savant that article is currently pending approval
# Jun 2nd 2010, 23:35 aaroninfidel how can I fix this? http://bakery.cakephp.org/articles/view/twilio-datasource the only thing I need to fix is $model->setInsertId($result['Sid']); because it's not an int id but it is a unique id.
# Jun 2nd 2010, 22:43 aristo wikipedia
# Jun 2nd 2010, 22:43 nafta hehe
# Jun 2nd 2010, 22:43 nafta aristo: I've got to figure out what a framework is first..
# Jun 2nd 2010, 22:36 aristo nafta, no man is a php framework
# Jun 2nd 2010, 22:35 nafta hello, what's cake php? I mean, is it an IDE for php?
# Jun 2nd 2010, 22:24 aaroninfidel I'm using foreach loops but I don't know if I'm doing it right.
# Jun 2nd 2010, 22:23 aaroninfidel can someone help me with traversing array data via a datasource? I'm confused... :/ http://bin.cakephp.org/view/879036115 basically I just want all the results of the array and for the array to be renamed where it says SMSMessasge to Text
# Jun 2nd 2010, 21:48 savant none, liaogz82
# Jun 2nd 2010, 21:48 liaogz82 what to set in core.php
# Jun 2nd 2010, 21:48 savant no problem
# Jun 2nd 2010, 21:48 liaogz82 hi savant is there any special settings for cache for my example?
# Jun 2nd 2010, 21:48 mrlumberg cool. Do you see any problem with that solution? Any other solution you recommend?
# Jun 2nd 2010, 21:46 savant yes
# Jun 2nd 2010, 21:43 mrlumberg hey all, quick table associations question here. I have users, profiles, schools attended and years graduated. users and profiles are easy but a profile can have mutliple schools each with a different year graduated. So, if I do profiles and schools as hasToAndBelongsToMany, can that 3 table (profiles_schools) contain an extra column called 'year_graduated'?
# Jun 2nd 2010, 21:40 aristo hi all
# Jun 2nd 2010, 21:26 adrianoc i'm usgin the jquery autocomplete plugin, i can change the action when i click on one of the items fetched? i want him to run location.href by clicking on an item.
# Jun 2nd 2010, 21:24 Lemon_BE but i need to authenticate on the controller layer
# Jun 2nd 2010, 21:24 Lemon_BE pure model layer
# Jun 2nd 2010, 21:24 Lemon_BE the only problem i currently have is, it relies on models
# Jun 2nd 2010, 21:24 friskd joeb: trying to use your Referee plugin. but upon running the schema builder from /cake/console i get .../app/plugins/referee/config/schema/schema.php could not be loaded
# Jun 2nd 2010, 21:23 Lemon_BE then you can add 1 rule that says, if the user is connected to the same category of the article, then they can edit it
# Jun 2nd 2010, 21:23 Lemon_BE and make "Category" a slot in your NewsArticle model
# Jun 2nd 2010, 21:23 Lemon_BE or for example you can create a habtm object with users and categories
# Jun 2nd 2010, 21:22 Lemon_BE without coding anything in your comments controller
# Jun 2nd 2010, 21:22 Lemon_BE for example if you make the "created" a slot, then you can add cool rules like, a user can only edit their own comment 5 mins long
# Jun 2nd 2010, 21:22 savant best docs ever
# Jun 2nd 2010, 21:22 savant php docs make up for the fact that its a crappy language