# |
Jul 17th 2009, 15:16 |
Phally |
alkemann: you might get sql errors, since it (still) uses a different schema |
# |
Jul 17th 2009, 15:16 |
markstory |
so you need _all_ the fixtures |
# |
Jul 17th 2009, 15:16 |
markstory |
well you get full model chains |
# |
Jul 17th 2009, 15:16 |
alkemann |
markstory: no.. i assume because Article does |
# |
Jul 17th 2009, 15:15 |
alkemann |
doesnt help |
# |
Jul 17th 2009, 15:15 |
markstory |
alkemann: does tag join to user? |
# |
Jul 17th 2009, 15:15 |
alkemann |
i try adding 'Users.user' since phally has a user fixture |
# |
Jul 17th 2009, 15:15 |
pointlessjon |
you can specify to import a model and not the fixture data, no? |
# |
Jul 17th 2009, 15:14 |
alkemann |
if im only loading tag fixture, all should be missing |
# |
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 |