I got this to work and am posting here in case anybody has the same
issue in the future.
I noticed that Model::findAll defines a $queryData array with a
'joins' element, although it always sets this element to an empty
array(). So I added a beforeFind() filter in my model that simply adds
the pro
I got this to work and am posting here in case anybody has the same
issue in the future.
I noticed that Model::findAll defines a $queryData array with a
'joins' element, although it always sets this element to an empty
array(). So I added a beforeFind() filter in my model that simply adds
the pro
On Jul 17, 8:54 pm, Jon Molesa <[EMAIL PROTECTED]> wrote:
> I'd research the model. I believe you'll find just what you're looking
> for.
Thanks, but I've been over the documentation and read the API
(1.2.x.x). I wouldn't have posted here without trying to figure it out
for myself first. Can you
Hi,
I'm trying to set up a dynamic association in my controller without
using a foreignKey, and Cake keeps putting a foreignKey clause in the
SQL join no matter what I do.
Essentially, in certain cases I want to limit the results of my query
by joining a table to my main search table and adding
Hi,
I've got a data schema where a parent table has multiple child tables,
and I'd like the child tables to know about each other, but they can
only be related via multiple columns.
Specifically, the parent table (Programs) hasOne child tables called
ProgramResults and ProgramResultsRanks. Each
> Can you paste your controller? Specifically, the class variables.
Not sure what you mean by "class variables". Here's the entire
controller:
TradingSystem->findAll();
$this->set('foo','bar');
}
}
?>
Note that if I uncomment the $uses line it finds my TradingSystem
model (
On Mar 23, 1:31 am, "aerosmith" <[EMAIL PROTECTED]> wrote:
> I think you must create your controller as the following:
>
> //app\controllers\trading_systems_controller_controller.php
> class TradingSystemsController extends AppController
> {
> var $name = 'TradingSystems';
>
> }
>
> take a lo
On Mar 22, 9:02 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> So sometimes when I want to know how the inflector works on things i
> make a test view like
>
> http://bin.cakephp.org/view/455901280
Good idea, thanks! I used your view with my table/class/filename and
here's the output I get:
wo
Hi,
I'm trying to figure out why cake isn't seeing my model. I've got a
table named trading_systems, a controller named
TradingSystemsController in controllers/
trading_systems_controller.php, and my model is named TradingSystem
and is in the file models/trading_system.php.
When I access http://