Thanks for the reference Chris! I fixed the issue by using str_pad in the afterFind callback of my model to repair the ISBN.
On Oct 4, 2:19 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 10/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > I'm not sure if this is a CakePHP issue or PHP in general, but I have > > a table in which I'm storing ISBN numbers in a VARCHAR(32) column. > > ISBNs can start with a zero (like 0137903952), but my model is > > returning the ISBN with the leading zero removed. > > > Does anyone know why this is occurring, and if there's any way to > > prevent it? > > PHP issue, look into str_pad(). > > -- > Chris Hartjes > Cake Development Corporationhttp://www.cakedevelopment.com > > My motto for 2007: "Just build it, damnit!" > > @TheKeyboard -http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
