# |
Jun 2nd 2010, 23:58 |
savant |
progit.org/book |
# |
Jun 2nd 2010, 23:57 |
savant |
learn |
# |
Jun 2nd 2010, 23:57 |
aaroninfidel |
xD |
# |
Jun 2nd 2010, 23:57 |
savant |
as I would need to see the error to help debug |
# |
Jun 2nd 2010, 23:57 |
aaroninfidel |
idk how to use git :) |
# |
Jun 2nd 2010, 23:57 |
savant |
otherwise idk how to help you |
# |
Jun 2nd 2010, 23:57 |
savant |
can you setup a git repository with your app or something |
# |
Jun 2nd 2010, 23:57 |
aaroninfidel |
lol |
# |
Jun 2nd 2010, 23:57 |
aaroninfidel |
I can't. |
# |
Jun 2nd 2010, 23:57 |
aaroninfidel |
... savant its a Rest API |
# |
Jun 2nd 2010, 23:56 |
savant |
as in your primaryKey should be char(34) |
# |
Jun 2nd 2010, 23:56 |
savant |
set the id to be char(34) in your database |
# |
Jun 2nd 2010, 23:55 |
savant |
~datasource |
# |
Jun 2nd 2010, 23:55 |
savant |
~datasources |
# |
Jun 2nd 2010, 23:54 |
savant |
is that the original datasource? |
# |
Jun 2nd 2010, 23:54 |
savant |
hmmm |
# |
Jun 2nd 2010, 23:52 |
aaroninfidel |
savant: http://bin.cakephp.org/view/1678645315 |
# |
Jun 2nd 2010, 23:51 |
aaroninfidel |
I'm giving it back to the community after I'm done fixing it. |
# |
Jun 2nd 2010, 23:51 |
savant |
what does $result put out? |
# |
Jun 2nd 2010, 23:51 |
aaroninfidel |
haha |
# |
Jun 2nd 2010, 23:51 |
aaroninfidel |
>.< |
# |
Jun 2nd 2010, 23:51 |
aaroninfidel |
I'm building the datasource myself... |
# |
Jun 2nd 2010, 23:50 |
aaroninfidel |
... |
# |
Jun 2nd 2010, 23:50 |
savant |
as it should tell you how to setup everything where it wont be broken |
# |
Jun 2nd 2010, 23:50 |
savant |
so then that datasource doesn't work |
# |
Jun 2nd 2010, 23:50 |
aaroninfidel |
I don't know how... because the API doesn't set a ID using just numbers. |
# |
Jun 2nd 2010, 23:50 |
savant |
set the id |
# |
Jun 2nd 2010, 23:49 |
aaroninfidel |
is there a way to hide that notice or meet its requirements ? |
# |
Jun 2nd 2010, 23:49 |
savant |
so set the id? |
# |
Jun 2nd 2010, 23:49 |
aaroninfidel |
savant: so, basically the model is raising a notice that an ID wasn't set. |
# |
Jun 2nd 2010, 23:49 |
savant |
aaroninfidel: i dont understand what you are doing |
# |
Jun 2nd 2010, 23:46 |
rolandpish |
I don't know what I'm missing in order to cake do the "filtering" of the foreign schools of the current student. |
# |
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 |