# |
Sep 22nd 2011, 15:41 |
TehTreag |
TheWarden: Where's the updated pastebin? Include filenames. |
# |
Sep 22nd 2011, 15:40 |
robcowie |
I have a small (I hope) question I hope no one minds? |
# |
Sep 22nd 2011, 15:40 |
TheWarden |
here is my updated configuration... still not working with the new table $hasMany from donglekey to dongle_keys_hardware.php |
# |
Sep 22nd 2011, 15:40 |
TehTreag |
robcowie: Welcome. |
# |
Sep 22nd 2011, 15:40 |
robcowie |
Hi all, first time visitor |
# |
Sep 22nd 2011, 15:40 |
TehTreag |
diverdude: And the next model? |
# |
Sep 22nd 2011, 15:38 |
diverdude |
TehTreag, if i do it alone it works fine i tried that |
# |
Sep 22nd 2011, 15:38 |
TheWarden |
NetersLandreau: I did already... I'll update the bin though... |
# |
Sep 22nd 2011, 15:38 |
TehTreag |
diverdude: Were are the test cases for hair color? Do that model alone, see what happens. |
# |
Sep 22nd 2011, 15:38 |
NetersLandreau |
TheWarden: bin it |
# |
Sep 22nd 2011, 15:37 |
TheWarden |
mmm fixing the camel case and model file name still didn't fix it. wtf have I done :) |
# |
Sep 22nd 2011, 15:37 |
diverdude |
TehTreag, i am not to sure if it is HairColor (I dont think so because that file gets written) or the next in line (this is the output) http://bin.cakephp.org/view/260825414 |
# |
Sep 22nd 2011, 15:35 |
TehTreag |
diverdude: Which model is it baking when it segfaults? |
# |
Sep 22nd 2011, 15:34 |
diverdude |
TehTreag, im running cake bake model all |
# |
Sep 22nd 2011, 15:34 |
TehTreag |
diverdude: You'd be done if you wrote it by hand. Never had a segfault running bake before. What are you doing? |
# |
Sep 22nd 2011, 15:33 |
diverdude |
anybody got error "Segmentation fault" while baking all before? |
# |
Sep 22nd 2011, 15:33 |
TheWarden |
dongle_keys_hardware.php, done. |
# |
Sep 22nd 2011, 15:31 |
caffeine_junkie |
underscore model file name |
# |
Sep 22nd 2011, 15:30 |
TheWarden |
I fixed all that TehTreag |
# |
Sep 22nd 2011, 15:30 |
EtRiGaN |
^.^ |
# |
Sep 22nd 2011, 15:30 |
TheWarden |
the class is called DongleKeysHardware now and is being referenced as that in the $hasMany. The model file name is donglekeyshardware.php. The table is dongle_keys_hardwares. |
# |
Sep 22nd 2011, 15:30 |
TehTreag |
camelcase the right way and try again. |
# |
Sep 22nd 2011, 15:29 |
TehTreag |
DongleKeysHardware .vs DonglekeyHardware? Which is it? |
# |
Sep 22nd 2011, 15:28 |
TheWarden |
anyone? |
# |
Sep 22nd 2011, 15:20 |
TheWarden |
? |
# |
Sep 22nd 2011, 15:20 |
TheWarden |
as soon as I remove the $hasMany within my Donglekey class the issue is gone. What simple thing am I doing wrong here. |
# |
Sep 22nd 2011, 15:18 |
TheWarden |
CakePHP appears to be using the wrong data source. Its not using dsi as I'm telling it to in the model and instead is using the $default database connection. So therefore it tries to find a web_dongle_keys_hardwares database table instead of dongle_keys_hardwares. As well its not using my model class either... sigh |
# |
Sep 22nd 2011, 15:14 |
Know1edge |
anyone know of an api/service that will let you enter addresses and it will find an optimized route for you for each waypointâ?¦ google maps api limits you to 26 stops |
# |
Sep 22nd 2011, 15:13 |
EtRiGaN |
check class name? |
# |
Sep 22nd 2011, 15:11 |
TheWarden |
I get "Missing Database Table Error: Database table web_dongle_keys_hardwares for model DonglekeysHardware was not found." |
# |
Sep 22nd 2011, 15:11 |
pur3forlyphe |
fixed btw |
# |
Sep 22nd 2011, 15:10 |
TheWarden |
I have it defined var $userDbConfig = 'dsi'; and it works fine in the donglekey model. |
# |
Sep 22nd 2011, 15:10 |
TheWarden |
I'm confused why its not using the dsi database connection |
# |
Sep 22nd 2011, 15:09 |
diverdude |
anyone? |
# |
Sep 22nd 2011, 15:06 |
TheWarden |
here is my database.php, and the two models, http://pastebin.com/aZtMvB2B. |
# |
Sep 22nd 2011, 15:06 |
pur3forlyphe |
hi all, trying to set a var $currentUser with $this->set(compact('currentUser', 'user')); though it keeps setting the var as $user still |
# |
Sep 22nd 2011, 15:05 |
Rozik |
TehTreag: this is awesome:-) thx! exactly what i needed |
# |
Sep 22nd 2011, 15:05 |
TheWarden |
I have a database table called dongle_keys_hardwares and I'm trying to link two models with hasMany however when I do this cake is looking for web_dongle_keys_hardwares. However there is no web_dongle_keys_hardwares its just dongle_keys_hardwares. my dbConfig is set with no prefix but its still using web_. Let me pastebin my two models and database.php |
# |
Sep 22nd 2011, 15:01 |
TheWarden |
Hi |
# |
Sep 22nd 2011, 15:01 |
Rozik |
TehTreag: thx |
# |
Sep 22nd 2011, 15:00 |
TehTreag |
~tell Rozik about google cakephp pseudocoder book download |