preparePlainTextValue implementation
Relationship is required

This add the data-required attribute in order to
remove the 'none' option. This fix requires a core change,
which is https://github.com/symphonycms/symphony-2/pull/2114
Merge pull request #66 from DeuxHuitHuit/plain-text

preparePlainTextValue implementation
Merge pull request #68 from DeuxHuitHuit/data-required

Relationship is required
Add checkPostFieldData function so that the required values can be detected by events
Stop storing the association on the field
Fix required check
Follow up of #66

This aligns the field with the latest changes in
symphonycms/symphony-2#2100

It now implements `prepareTextValue` but delegates reads to the default
`prepareReadableValue` implementation that will properly format
our implementation of textValue.
Check if $data is array before checking isset

I do not know why, but on my setup, when $data is a string, isset would
return true. Also checking if $data is an array fixes it and should not
cause damage since the only thing we do with tha array is filter it.
Merge pull request #71 from DeuxHuitHuit/php-is-set-issue

Check if $data is array before checking isset. RE: #70
Fix filtering with contains: in the backend. Closes symphonycms/symphon-2#2074
Merge pull request #69 from DeuxHuitHuit/prepare-text

Follow up of #66
Revert back to $data if no relation_id is set

This should fix #70 while keeping the is_array check
Merge pull request #72 from DeuxHuitHuit/issue-70

Revert back to $data if no relation_id is set
Release 1.31