Error with model validation
I just had a bit more of a look into this, I got the same error as you but by changing

'id' =&gt; array(AttributeType::Number, 'required' =&gt; true, 'unique' =&gt; true),


to just

id =&gt; AttributeType::Number


It fixed the issue and I was able to validate on it no problem, I don't think you need to worry about the ID being unique or being set on the model as this will be handled automatically by your record when you use it to save to the database, so you can be certain that every models id will always be unique.