CakePHP: Can I ignore a field when reading the Model from the DB?

Posted by Daniel Magliola on Stack Overflow See other posts from Stack Overflow or by Daniel Magliola
Published on 2010-06-03T23:16:03Z Indexed on 2010/06/04 6:09 UTC
Read the original article Hit count: 330

Filed under:
|

In one of my models, I have a "LONGTEXT" field that has a big dump of a bunch of stuff that I never care to read, and it slows things down, since I'm moving much more data between the DB and the web app.

Is there a way to specify in the model that I want CakePHP to simply ignore that field, and never read it or do anything with it?

I really want to avoid the hassle of creating a separate table and a separate model, only for this field.

Thanks!
Daniel

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about ignore-field