# |
Jul 17th 2009, 15:23 |
Phally |
alkemann: you are using my fixture? plugin.users.user ? |
# |
Jul 17th 2009, 15:23 |
alkemann |
markstory: adding all fixtures and public $autoFixtures = false; i guess |
# |
Jul 17th 2009, 15:21 |
markstory |
yeah :) |
# |
Jul 17th 2009, 15:21 |
dennishennen |
I should know better |
# |
Jul 17th 2009, 15:20 |
dennishennen |
yep, didn't do that |
# |
Jul 17th 2009, 15:20 |
markstory |
you need to pass those into the parent::__construct() |
# |
Jul 17th 2009, 15:20 |
dennishennen |
ahh |
# |
Jul 17th 2009, 15:20 |
markstory |
it has 3 args |
# |
Jul 17th 2009, 15:20 |
markstory |
override it properlyy |
# |
Jul 17th 2009, 15:20 |
dennishennen |
markstory: Something you just said fixed my immediate problem. My fixtures didn't seem to be working right, and it is because my model had a __construct(). So what do I do if need a __construct() ? |
# |
Jul 17th 2009, 15:20 |
alkemann |
it doesnt find the users table.. says missing 'test_users' |
# |
Jul 17th 2009, 15:19 |
Phally |
alkemann: shouldn't be messing with models though |
# |
Jul 17th 2009, 15:19 |
markstory |
moar fixtures! |
# |
Jul 17th 2009, 15:18 |
alkemann |
cake is greedy |
# |
Jul 17th 2009, 15:18 |
markstory |
etc. |
# |
Jul 17th 2009, 15:18 |
markstory |
and all the tables that are joined to those models |
# |
Jul 17th 2009, 15:18 |
markstory |
it needs all the tables that are joined to tag too. |
# |
Jul 17th 2009, 15:18 |
markstory |
cake needs more. |
# |
Jul 17th 2009, 15:18 |
markstory |
you needed. |
# |
Jul 17th 2009, 15:18 |
alkemann |
it was all i needed |
# |
Jul 17th 2009, 15:18 |
markstory |
that is all that gets imported. |
# |
Jul 17th 2009, 15:18 |
markstory |
you are only loading one fixture. |
# |
Jul 17th 2009, 15:17 |
markstory |
and more to do with var $fixtures = array('app.tag'); |
# |
Jul 17th 2009, 15:17 |
markstory |
it has less to do with baking |
# |
Jul 17th 2009, 15:17 |
alkemann |
cake bake fixtures all ? |
# |
Jul 17th 2009, 15:16 |
markstory |
that could be linked to Tag |
# |
Jul 17th 2009, 15:16 |
alkemann |
unless it's phally's access component thats very noisy |
# |
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. |