Closed andrewk closed 10 years ago
Might this be better as a parameter to existing string and int types?
<?php
public function properties()
{
return array(
'title' => new Types\String(255, array('required', 'allowed'=>array('llamas','alpacas')),
);
}
That way it's clearer that it's not backed onto an ENUM type.
It's more verbose, but probably more Pheasant. Thought @mtibben @harto @rbone ?
Good point... we might want to reserve an Enum
type for genuine compatibility with MySQL ENUM
at some later time.
I am down with this. Will move Enum code and tests into optional param for String and Int
As discussed in feature request.