Re: 3.0 e mysql fields ENUM
Hi! Read the link I gave you. That answers everything already for you. Mark Am Dienstag, 20. Januar 2015 15:15:02 UTC+1 schrieb Leandro Machado Pereira: > > Hi mark, sorry for late in my answer. > > I search more information for mysql field ENUM and gave up using this type. > > However, i need for of one field in my model for manager de columns STATUS. > > I can't use Enum because the value of the STATUS isn't same in another > model. > > What you think i can do ? > > I think do one properties in each model, but i don't know how do this. > > Em Fri Jan 16 2015 at 15:54:48, euromark > > escreveu: > >> Enums are a bad thing anyway. >> Better use sth of the options listed @ >> http://www.dereuromark.de/2010/06/24/static-enums-or-semihardcoded-attributes/ >> >> mark >> >> Am Donnerstag, 15. Januar 2015 23:18:45 UTC+1 schrieb Leandro Machado >> Pereira: >>> >>> I gave up using enum. >>> Thanks. >>> >> Em Thu Jan 15 2015 at 17:31:51, Leandro Machado Pereira < >>> llper...@gmail.com> escreveu: >>> Hey guy, I tried to do work my fields with mysql ENUM. In cake 2.0 i used this helper. http://www.drawbackz.com/stack/251186/cakephp-2-0-use- mysql-enum-field-with-form-helper-to-create-select-input.html But in cake 3.0 i'm have dificults for work fine. I received errors in this line. $modelKey = $this->model(); and in this line: $this->fieldset[$modelKey]['fields'][$fieldName]['type'], So, does somebody have any suggestions ? Thanks. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. >>> To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com. To post to this group, send email to cake...@googlegroups.com. >>> >>> Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. >>> -- >> Like Us on FaceBook https://www.facebook.com/CakePHP >> Find us on Twitter http://twitter.com/CakePHP >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CakePHP" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to cake-php+u...@googlegroups.com . >> To post to this group, send email to cake...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/cake-php. >> For more options, visit https://groups.google.com/d/optout. >> > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: 3.0 e mysql fields ENUM
Hi mark, sorry for late in my answer. I search more information for mysql field ENUM and gave up using this type. However, i need for of one field in my model for manager de columns STATUS. I can't use Enum because the value of the STATUS isn't same in another model. What you think i can do ? I think do one properties in each model, but i don't know how do this. Em Fri Jan 16 2015 at 15:54:48, euromark escreveu: > Enums are a bad thing anyway. > Better use sth of the options listed @ > http://www.dereuromark.de/2010/06/24/static-enums-or-semihardcoded-attributes/ > > mark > > Am Donnerstag, 15. Januar 2015 23:18:45 UTC+1 schrieb Leandro Machado > Pereira: >> >> I gave up using enum. >> Thanks. >> > Em Thu Jan 15 2015 at 17:31:51, Leandro Machado Pereira < >> llper...@gmail.com> escreveu: >> >>> Hey guy, I tried to do work my fields with mysql ENUM. >>> >>> In cake 2.0 i used this helper. >>> >>> http://www.drawbackz.com/stack/251186/cakephp-2-0-use- >>> mysql-enum-field-with-form-helper-to-create-select-input.html >>> >>> But in cake 3.0 i'm have dificults for work fine. >>> >>> I received errors in this line. >>> >>> $modelKey = $this->model(); >>> >>> and in this line: >>> >>> $this->fieldset[$modelKey]['fields'][$fieldName]['type'], >>> >>> So, does somebody have any suggestions ? >>> >>> Thanks. >>> >>> -- >>> Like Us on FaceBook https://www.facebook.com/CakePHP >>> Find us on Twitter http://twitter.com/CakePHP >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "CakePHP" group. >>> >> To unsubscribe from this group and stop receiving emails from it, send an >>> email to cake-php+u...@googlegroups.com. >>> To post to this group, send email to cake...@googlegroups.com. >> >> >>> Visit this group at http://groups.google.com/group/cake-php. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: 3.0 e mysql fields ENUM
Enums are a bad thing anyway. Better use sth of the options listed @ http://www.dereuromark.de/2010/06/24/static-enums-or-semihardcoded-attributes/ mark Am Donnerstag, 15. Januar 2015 23:18:45 UTC+1 schrieb Leandro Machado Pereira: > > I gave up using enum. > Thanks. > Em Thu Jan 15 2015 at 17:31:51, Leandro Machado Pereira < > llper...@gmail.com > escreveu: > >> Hey guy, I tried to do work my fields with mysql ENUM. >> >> In cake 2.0 i used this helper. >> >> >> http://www.drawbackz.com/stack/251186/cakephp-2-0-use-mysql-enum-field-with-form-helper-to-create-select-input.html >> >> But in cake 3.0 i'm have dificults for work fine. >> >> I received errors in this line. >> >> $modelKey = $this->model(); >> >> and in this line: >> >> $this->fieldset[$modelKey]['fields'][$fieldName]['type'], >> >> So, does somebody have any suggestions ? >> >> Thanks. >> >> -- >> Like Us on FaceBook https://www.facebook.com/CakePHP >> Find us on Twitter http://twitter.com/CakePHP >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CakePHP" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to cake-php+u...@googlegroups.com . >> To post to this group, send email to cake...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/cake-php. >> For more options, visit https://groups.google.com/d/optout. >> > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: 3.0 e mysql fields ENUM
I gave up using enum. Thanks. Em Thu Jan 15 2015 at 17:31:51, Leandro Machado Pereira < llperei...@gmail.com> escreveu: > Hey guy, I tried to do work my fields with mysql ENUM. > > In cake 2.0 i used this helper. > > > http://www.drawbackz.com/stack/251186/cakephp-2-0-use-mysql-enum-field-with-form-helper-to-create-select-input.html > > But in cake 3.0 i'm have dificults for work fine. > > I received errors in this line. > > $modelKey = $this->model(); > > and in this line: > > $this->fieldset[$modelKey]['fields'][$fieldName]['type'], > > So, does somebody have any suggestions ? > > Thanks. > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
3.0 e mysql fields ENUM
Hey guy, I tried to do work my fields with mysql ENUM. In cake 2.0 i used this helper. http://www.drawbackz.com/stack/251186/cakephp-2-0-use-mysql-enum-field-with-form-helper-to-create-select-input.html But in cake 3.0 i'm have dificults for work fine. I received errors in this line. $modelKey = $this->model(); and in this line: $this->fieldset[$modelKey]['fields'][$fieldName]['type'], So, does somebody have any suggestions ? Thanks. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.