i just want to inform you that code example given in
http://rtfm.modx.com/display/xPDO20/xPDOObjectExistsValidationRule
is a bit wrong
<validation>
<rule field="name"
name="chunkExists"
type="xPDOValidationRule"
rule="xPDOMinLengthValidationRule"
pk="12"
classKey="modChunk"
message="The Chunk does not exist, so this object cannot be saved."
/>
</validation>
the rule="xPDOMinLengthValidationRule" should be rule="xPDOObjectExistsValidationRule"
or am i wrong here?