Monday, June 6, 2011

Re: Saving into id-less table

sry i meant you need to adjust
var $primaryKey

since virtual fields are not very stable this is not a good idea at
all.


On 6 Jun., 11:31, thom <cyber.phanto...@gmail.com> wrote:
> On Mon, Jun 6, 2011 at 4:22 PM, euromark <dereurom...@googlemail.com> wrote:
> > you always need some kind of id - or so called primary key/identifier
> > which can be indexed
>
> That's why I think it's strange. The prev programmer didnt make one.
> And the system is already out. So, I am prosecuted to make
> no-differences in the database/ table between the old one and the new
> one but the script..
>
> The table is contain 2 IDs from another tables, 'total' field, and
> 'note' field, where 'note' is just an enum.
>
> What do you think about using virtualField as primary key? I just
> found it on cake-book.
>
> --
> Regards,,,
> mastanto (thom_)http://mynameisthom.tumblr.comhttp://mynameisthom.blogspot.comhttp://www.twitter.com/mastanto_

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate