# |
Sep 22nd 2011, 15:56 |
TehTreag |
diverdude: Ok. I see. |
# |
Sep 22nd 2011, 15:56 |
diverdude |
i can also see the 1.x tickets...but not 2.x |
# |
Sep 22nd 2011, 15:55 |
diverdude |
TehTreag, your looking at CakePHP 2.x tickets ? |
# |
Sep 22nd 2011, 15:54 |
TehTreag |
diverdude: You should see if anyone else has your issue. |
# |
Sep 22nd 2011, 15:54 |
TehTreag |
diverdude: I'm not logged in... I can review the tickets, what's the issue on your end. |
# |
Sep 22nd 2011, 15:53 |
diverdude |
TehTreag, :) not to smart |
# |
Sep 22nd 2011, 15:53 |
TehTreag |
diverdude: Astute observation. |
# |
Sep 22nd 2011, 15:53 |
TheWarden |
TehTreag: a one to many relationship. |
# |
Sep 22nd 2011, 15:53 |
TheWarden |
TehTreag: I'm trying to join dongle_keys to dongle_keys_hardwares. |
# |
Sep 22nd 2011, 15:53 |
robcowie |
that should read I can save* |
# |
Sep 22nd 2011, 15:53 |
TheWarden |
NetersLandreau: Yeah I should read that... not sure if that would help me in this situation. |
# |
Sep 22nd 2011, 15:52 |
diverdude |
TehTreag, seems like i need to member of some account b4 i can see tickets in the lighthouse |
# |
Sep 22nd 2011, 15:52 |
TehTreag |
TheWarden: Sorry... I miss read. |
# |
Sep 22nd 2011, 15:52 |
NetersLandreau |
TheWarden: go to the API |
# |
Sep 22nd 2011, 15:52 |
TehTreag |
TheWarden: What's your join table name? |
# |
Sep 22nd 2011, 15:52 |
robcowie |
I can't save multiple applicants from the new application form, but not the associated residences |
# |
Sep 22nd 2011, 15:51 |
TheWarden |
ACTION goes back the the book to re-read about CakePHP to see if he can find a solution. |
# |
Sep 22nd 2011, 15:51 |
robcowie |
I can't work syntax for the form helper to make saveAll work, any pointers? |
# |
Sep 22nd 2011, 15:50 |
TehTreag |
robcowie: SaveAll() - Used to save (a) multiple individual records for a single model or (b) this record, as well as all associated records |
# |
Sep 22nd 2011, 15:49 |
unico7 |
but it seems like not recognizing the related class |
# |
Sep 22nd 2011, 15:48 |
TheWarden |
I dunno why its not working... I thought I was getting this now I guess not. |
# |
Sep 22nd 2011, 15:48 |
unico7 |
and then in the view i want to use this variable to access a related class |
# |
Sep 22nd 2011, 15:48 |
TehTreag |
~lighthouse |
# |
Sep 22nd 2011, 15:48 |
diverdude |
TehTreag, the lighthouse? |
# |
Sep 22nd 2011, 15:48 |
robcowie |
I have a few models - application has many applicants, applicant has many residences, residence has one address, and want a form for a new application that has 2 applicants, with 3 residences and address for each. Can I do that with saveAll, or do I need to step through the $this->data array in the controller and save like that? |
# |
Sep 22nd 2011, 15:48 |
TheWarden |
TehTreag: http://bin.cakephp.org/view/1055879171, actually the only reason I normally don't use bin.cakephp.org is I always wonder do my paste still they forever or not. a privacy thing I guess. |
# |
Sep 22nd 2011, 15:47 |
TehTreag |
diverdude: Check the lighthouse. |
# |
Sep 22nd 2011, 15:47 |
unico7 |
ok in the controller i save a variable like find('all of with some condition |
# |
Sep 22nd 2011, 15:47 |
TehTreag |
NetersLandreau: I don't think so. |
# |
Sep 22nd 2011, 15:47 |
diverdude |
TehTreag, could there be a bug in the cake script |
# |
Sep 22nd 2011, 15:47 |
NetersLandreau |
perhaps it also needs to be declared in the $hasMany? |
# |
Sep 22nd 2011, 15:47 |
TehTreag |
unico7: You don't use models in views. |
# |
Sep 22nd 2011, 15:46 |
NetersLandreau |
i realize that TheWarden.. |
# |
Sep 22nd 2011, 15:46 |
unico7 |
in the view |
# |
Sep 22nd 2011, 15:46 |
unico7 |
yes i have also used loadmodel but |
# |
Sep 22nd 2011, 15:46 |
TheWarden |
NetersLandreau: right but I have in the model to use dsi though |
# |
Sep 22nd 2011, 15:46 |
NetersLandreau |
TheWarden: i think it has something to do with how you are declaring the $hasMany.. apparently it is looking in $default dbconfig for the table.. |
# |
Sep 22nd 2011, 15:45 |
diverdude |
TehTreag, i run it like this: cake bake model all (added cake to path). running from cakeroot |
# |
Sep 22nd 2011, 15:45 |
TehTreag |
unico7: Read the links I sent. |
# |
Sep 22nd 2011, 15:45 |
TheWarden |
TehTreag: oh and it looks like in the index action as well.. as soon as I remove the $hasMany from the donglekey.php the error goes away. |
# |
Sep 22nd 2011, 15:45 |
TehTreag |
TheWarden: Add that action to the pastebin... any reason you don't use the cakephp pastebin? |