Automatically select a subset of a model's fields
Hi.
In my web app I am bridging with PHPBB for user authentication, so my
main user database table is PHPBB's user table. I created a Cake model
for it.
The problem is, lots of tables in my app join with the user table,
which has a lot of fields related to PHPBB stuff, but I only really
need the user id, name and email. Cake fetches all the fields
everytime.
Is there a way to specify a subset of fields to select, without having
to add everytime a 'fields' option in the queries? I tried with the
$_schema property but to no avail.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home