You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To synchronize MgdSchema's features a bit with JCR Node Type Notation, we should support required properties.
If object is being saved without a required field having a value, Midgard should throw an exception and abort that save.
Something like:
<type name="org_openpsa_products_product">
...
<property name="title" type="string" required="yes"/>
</type>
$product = new org_openpsa_products_product();
$product->description = "Blah";
// No title set
$product->create(); // Will throw midgard_error_requiredfield exception and not save the product
To synchronize MgdSchema's features a bit with JCR Node Type Notation, we should support required properties.
If object is being saved without a required field having a value, Midgard should throw an exception and abort that save.
Something like:
(copied from http://trac.midgard-project.org/ticket/761)
The text was updated successfully, but these errors were encountered: