Tuesday, January 20, 2015

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 <dereuromark@gmail.com> escreveu:
Enums are a bad thing anyway.

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.


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+unsubscribe@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+unsubscribe@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.

No comments: