Hi guys, I'm trying to test a model. The first problem I faced was
having to load all fixtures from all the related models. The issue is
well known and, just to get up and running fast, I loaded all fixtures
in my startTest function, as I show bellow:
function startTest() {
$fixturesPath =
Having validate = first per default in saveAll() was terrible.
Automatically saving related data is not possible anymore, since the
foreign keys are not set before the main model is saved. =/
On Apr 1, 10:53 pm, jacmoe jac...@mail.dk wrote:
For the record:
I my RC2 powered app, I had this piece
Hi, I'm having a similar issue and would also appreciate some help :)
I'm setting the 'name' field in the afterFind method, but my select
still generates ids as options.
On Sep 16, 4:44 am, Walther waltherl...@gmail.com wrote:
I have no experience in this, but a custom data source might be the
Hi, I'm a cakephp beginner and I'm wondering how I can load initial
data in my database (eg. some users and groups). I thought fixtures
could do the task, but it seems that they can only be used for tests,
right?
Is there a plugin or even a standard way to do it? I've found some
migration
,
Please try out with the basic cakephp assignment,
http://book.cakephp.org/view/219/Blog
2009/9/2 Zé Ricardo zehzi...@gmail.com
Hi, I'm a cakephp beginner and I'm wondering how I can load initial
data in my database (eg. some users and groups). I thought fixtures
could do the task