Log message #896523

# At Username Text
# Jul 17th 2009, 15:14 markstory well users table is missing.
# Jul 17th 2009, 15:14 alkemann markstory: http://bin.cakephp.org/view/860720628 - with line 6 i get troubled with "missing users table"
# Jul 17th 2009, 15:11 markstory and a model that doesn't have __construct() replaced?
# Jul 17th 2009, 15:11 markstory so you have an import fixture?
# Jul 17th 2009, 15:11 markstory makes sense.
# Jul 17th 2009, 15:11 alkemann instead it is using the actual table
# Jul 17th 2009, 15:11 alkemann i'd just like it to copy the live table, add a prefix and use this test table truncated and fixtured for testing
# Jul 17th 2009, 15:10 markstory I'm confused then.
# Jul 17th 2009, 15:10 alkemann it wouldnt, but u seemed to answer with that for my problem
# Jul 17th 2009, 15:10 markstory the fixture truncates the tables.
# Jul 17th 2009, 15:10 markstory no why would it.
# Jul 17th 2009, 15:09 alkemann markstory: classregiestry doesnt truncate tables afaik..
# Jul 17th 2009, 15:08 markstory Or it should be getting flushed.
# Jul 17th 2009, 15:08 alkemann markstory: thats what i want to do. but since the tests are for a custom model method, i need to access the real model, just not the real data
# Jul 17th 2009, 15:08 markstory the registry gets flushed after imports.
# Jul 17th 2009, 15:08 alkemann i guess since i import the model and it doesnt extend CakeTestModel?
# Jul 17th 2009, 15:08 markstory why aren't you using fixtures?
# Jul 17th 2009, 15:07 alkemann markstory: isnt using my fixtures uses the live table
# Jul 17th 2009, 15:07 markstory or are using setUp
# Jul 17th 2009, 15:07 markstory unless you have no fixtures.
# Jul 17th 2009, 15:07 markstory then that should work.
# Jul 17th 2009, 15:07 alkemann markstory: i am
# Jul 17th 2009, 15:07 alkemann @alkemann , illustrata.no/blog
# Jul 17th 2009, 15:06 techno-geek ADmad, I suppose that will have to do. thanks
# Jul 17th 2009, 15:05 Phally alkemann: this is what causes it: http://api.cakephp.org/file/libs/error.php
# Jul 17th 2009, 15:05 ADmad techno-geek: http://pipes.yahoo.com/pipes/pipe.run?_id=AC2x_QO_3RG2ja_EBB50VAand_render=rss http://planetcakephp.org/
# Jul 17th 2009, 15:04 markstory to build the model
# Jul 17th 2009, 15:04 markstory alkemann: use Cr::init()
# Jul 17th 2009, 15:02 techno-geek I know this is off topic but who all in here has blogs and/or a twitter account? If you have one I would really appreciate it if you would PM it to me or something because I really like reading them and you guys are obviously the cream of the crop :P
# Jul 17th 2009, 14:57 Phally oh there isn't a CakeError haha
# Jul 17th 2009, 14:55 Phally alkemann: or CakeError
# Jul 17th 2009, 14:55 Phally alkemann: AppError probably extends AppController in some way
# Jul 17th 2009, 14:55 alkemann Phally: the problem seems to be related to the error. ie when i mess up something so it wants to tell me missing DB table, somehow your access components gets involved
# Jul 17th 2009, 14:52 alkemann when importing model to do tests, how can i make it use a test_suite db config ? so i as to not work on real tables
# Jul 17th 2009, 14:52 Phally alkemann: then yeah, it is strange haha, since the component is added in AppController, else shouldn't bitch
# Jul 17th 2009, 14:51 alkemann no
# Jul 17th 2009, 14:50 Phally alkemann: are you using a fake controller?
# Jul 17th 2009, 14:50 alkemann i just dont see why a components gets involved at all when runnning tests on models
# Jul 17th 2009, 14:50 Phally should be users_plug_users
# Jul 17th 2009, 14:50 Phally alkemann: maybe it doesn't 'see' it should use the other db config
# Jul 17th 2009, 14:49 Phally 'in this branch'