Fixture file is not being loaded during tests.

2010-09-27 Thread Ricardo
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 =

Re: CakePHP 1.3.0-RC3 unleashed

2010-04-06 Thread Ricardo
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

Re: displayField is not in the database (mixed models?)

2009-09-17 Thread Ricardo
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

how to load initial data?

2009-09-02 Thread Ricardo
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

Re: how to load initial data?

2009-09-02 Thread Ricardo
, 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