Mysql error when defining related tables
Ok, so I figured it out. 

The reason it fails to create the tables is because the foreign key has to be of the same type as the primary key it's relating to. 

So I just changed:

'quoteId' =&gt; AttributeType::String,


to:

'quoteId' =&gt; AttributeType::Number,


And it worked!