Rename DB Fields after Bake

2011-05-05 Thread vauneen
Hi,
i realised (after baking and much customisation) that i can use DB fields
called 'created' and 'modified' (as long as the are type Datetime and
default NULL) to get built in functionality to save 'created on date' and
'modified on date' saved to DB on add and edit. 
So i renamed my 2 fields to 'created' and 'modified' but the db values in
the fields remain NULL after adding and updating.
what have i missed? can one not rename DB fields after baking? 
(i did replace the old field names with the new ones in the views.)
any help would be appreciated
Vauneen

--
View this message in context: 
http://cakephp.1045679.n5.nabble.com/Rename-DB-Fields-after-Bake-tp4372809p4372809.html
Sent from the CakePHP mailing list archive at Nabble.com.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Cakephp related tables show id's instead of values

2010-12-30 Thread vauneen
Hi, i think i have all 'baked' all my relationships correctly but my
'related' table shows id's instead of values.

my db has 3 tables. candidates, qualificationlookups, qualifications.
qualificationlookups, links candidates to qualifications using the id
of the candidate and the id of the qualification.

in my view view, for 'candidates', i have a 'related
qualificationlookups' table. (generated by baking a candidate hasmany
qualificationlookups and a qualificationlookups belongsto candidate
relationship)

in my edit view, for 'qualificationlookups', i can correctly set up
the candidates and qualifications fields as dropdowns so i know
'qualificationlookups's relationships are fine.

So how do i ask cakephp to list the name of the qualification (from
'qualifications' table) in the 'related qualificationlookups' table on
a candidate's page?

i must be missing something...

could someone please point me in the right direction?

Thanks, Vauneen

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en