On Sep 7, 6:35 am, Jason [EMAIL PROTECTED] wrote:
snip
The reason for why in my mind is bloat. Why go through the process
of loading an entire ORM object when all you want is read-only access?
I think a read only model type with all the fat trimmed would be a
nice addition. Maybe I'm alone
Hi Jason,
Sorry, somethings (How do I keep coders from using these models to
edit the tables?) lead me to believe you were asking a (internal?)
security question. And sorry if that tainted the tone of my reply.
On Sep 6, 12:23 am, Jason [EMAIL PROTECTED] wrote:
snip
It's not so much a security
On Sep 6, 4:02 am, AD7six [EMAIL PROTECTED] wrote:
Hi Jason,
Sorry, somethings (How do I keep coders from using these models to
edit the tables?) lead me to believe you were asking a (internal?)
security question. And sorry if that tainted the tone of my reply.
Aye, I could have been
On 04/09/07, Jason [EMAIL PROTECTED] wrote:
This is my first post to this group, so I'd like to say hello
first. :) This post seems long, but the question is pretty simple -
not sure about the answer.
Hi!
I would like to be able to access this data through one object that is
locked down.
first, do the 1 table 1 model as suggested.
I need a way to have an object talk to these tables ...
A Component will surely help on this. have this component (e.g.
GeoComponent) load the Models during initialization
Component::__construct().
You may create different methods/functions for
Even if I don't create the CRUD functionality, it's still there for
another developer to totally mess things up. To add some level of
protection I've created an AppReadOnlyModel that extends AppModel
which has overridden save and delete functionality. It was easier than
editing the beforeSave and
On 05/09/07, Jason [EMAIL PROTECTED] wrote:
Even if I don't create the CRUD functionality, it's still there for
another developer to totally mess things up. To add some level of
protection I've created an AppReadOnlyModel that extends AppModel
which has overridden save and delete
..and use cache for models with cache() function. (states,
countries..)
On Sep 5, 5:16 pm, Mike Griffin [EMAIL PROTECTED] wrote:
On 05/09/07, Jason [EMAIL PROTECTED] wrote:
Even if I don't create the CRUD functionality, it's still there for
another developer to totally mess things up.
On Sep 5, 12:01 pm, Ketan Patel [EMAIL PROTECTED] wrote:
You were on right track for creating a AppReadOnlyModel which extends
AppModel and overwrite the beforeSave, beforeDelete methods.
There are mistakes with your relations. I think the right relations
are:
ZipCode hasOne City
City
On Sep 4, 5:32 pm, Jason [EMAIL PROTECTED] wrote:
snip
I would like to be able to access this data through one object that is
locked down. There will be no reason for my application to ever add or
delete from these tables.
You cannot do anything within Cake to prevent the code $this-Model-
On Sep 5, 5:17 pm, AD7six [EMAIL PROTECTED] wrote:
On Sep 4, 5:32 pm, Jason [EMAIL PROTECTED] wrote:
snip
I would like to be able to access this data through one object that is
locked down. There will be no reason for my application to ever add or
delete from these tables.
You
The Model::bindModel()/unbindModel() is listed in the cakephp manual
http://manual.cakephp.org/chapter/models (latter part) or the api
http://api.cakephp.org/1.2/class_model.html#0b969d5264205cd3a425980dd53e9658
this a way to alter the associations (hasOne, hasMany ...) on the fly.
This will
This is my first post to this group, so I'd like to say hello
first. :) This post seems long, but the question is pretty simple -
not sure about the answer.
My question revolves around models. I have 5 tables that represent
geographic information. I want to use this to do radius searches among
13 matches
Mail list logo