# |
Jul 17th 2009, 15:30 |
Phally |
what was the problem? |
# |
Jul 17th 2009, 15:30 |
Phally |
\o/ |
# |
Jul 17th 2009, 15:30 |
alkemann |
omg. that long to get what i already knew : 6 green passes |
# |
Jul 17th 2009, 15:30 |
Phally |
plugin.users.group |
# |
Jul 17th 2009, 15:30 |
markstory |
plus all the fixtures related to those models. |
# |
Jul 17th 2009, 15:29 |
markstory |
so you need app.article, and plugin.users.user in your fixtures |
# |
Jul 17th 2009, 15:29 |
Phally |
hmm nothing wrong with that |
# |
Jul 17th 2009, 15:27 |
alkemann |
'User' => array('className' => 'Users.User', |
# |
Jul 17th 2009, 15:27 |
Phally |
do you have belongsTo User or belongsTo Users.User? |
# |
Jul 17th 2009, 15:26 |
alkemann |
ya |
# |
Jul 17th 2009, 15:26 |
Phally |
alkemann: err i meant the one which belongsTo User (Article) probably |
# |
Jul 17th 2009, 15:25 |
alkemann |
habtm Article |
# |
Jul 17th 2009, 15:25 |
Phally |
alkemann: what association do you have on Tag? |
# |
Jul 17th 2009, 15:24 |
markstory |
setting autoFixtures = false means you have to manually load them before building a model. |
# |
Jul 17th 2009, 15:24 |
alkemann |
Phally: no. could only get it to stfu baking fxitures for everything and user_fixture.php in app |
# |
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 |