I fully agree that the fromString method, while extremely useful, is not good enough.
It is not supported by 100% of the datatypes
It does not involve all of the validation done when editing content via the browser
Point 2 is especially important, as there is currently no other method (afaik) that does it - datatype validation is sadly tied to variables being there in $_POST. This has the nasty effects that a lot of import scripts do create inconsistent data (inconsistent wrt. content class definition).
Let's hope that this will be fixed in the new content-management API currently in the works...
Principal Consultant International Business
Member of the Community Project Board
You must be logged in to post messages in this topic!