Monday, September 27, 2010

Re: id field as char(40) and id number is automatically created

i guess mariano probably ment char(36) - which are cake UUIDs
and just messed it up. well...


On 27 Sep., 19:55, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> And char(40) isn't *the Cake way*. It's an alternative that can be attractive in some cases. For instance, if you have a table of orders, the perception of being order no. 5 might not be that great, and this can be somewhat masked by the 40 char string - although I do think they are severely ugly and I do my best to keep them back of house. They can be a pain while testing and debugging too. Their distinct advantage is that they are limitless, but if you pick the right int datatype you'd do well to use them all up.
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> On 27 Sep 2010, at 18:24, euromark wrote:
>
> > you can always set up a local environment to test!
> > WAMP, XAMPP
> > there you got everything you need to develop
>
> > On 27 Sep., 19:09, "Mariano C." <mariano.calan...@gmail.com> wrote:
> >> I'm waiting for a serious host, in the mainwhile i'm testing source on
> >> a freehost, I suppose they have suppressed char for varchar, avoiding
> >> space with newbie issue.
> >> Sure, I can use int! Matter of fact i'm using int right now, but
> >> looking to the future (when DB will grow up) cake approch will be
> >> better.
>
> >> What do you suggest?
>
> >> On 27 Set, 18:50, Jeremy Burns | Class Outfit
>
> >> <jeremybu...@classoutfit.com> wrote:
> >>> varchar?
>
> >>> Is it a MySQL database? If so, what's the restriction for? If you really really can't (and I'd be surprised) then can you work with an int instead?
>
> >>> Jeremy Burns
> >>> Class Outfit
>
> >>> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> >>> On 27 Sep 2010, at 17:48, Mariano C. wrote:
>
> >>>> I've a problem with my free host, I cant' create char! Can I specify
> >>>> another field type for magic id creation. And if I can, where I have
> >>>> to explain that?
>
> >>>> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers 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 athttp://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 athttp://groups.google.com/group/cake-php?hl=en

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

No comments: