Hi everyone,
I’m a Yii newbie workin on his first project, actually i’ve designed the whole db model but I’m wondering about how to define some model’s attribute that can assume a limited set of values. I’ve tried to look around in this forum with no results
For Instance, suppose to have the "Connection" of which I want to be able do describe its speed value, in the project speed can be defined with two attributes "capacity" and "capacityUnit". For capacityUnit the only value admitted are "Mbit/s" and "Kbit/s".
Which is the best way to describe this in the Model? As a new Class capacityUnit and a one-to-many relationship could be fine? Basically the final result must be that in my view i can pick the capacity unit from a combo box.
Thank you