-
Notifications
You must be signed in to change notification settings - Fork 66
Description
Hi,
When I use the form type phpcr_document and POST a documents identifier/uuid, it won't resolve correctly. If I use the full path of the node, the data model that comes out of the form is populated correctly. Also DocumentToPathTransformer.php seems not to be used at all, isn't it supposed to use this transformer?
This is how I use the form type:
// ...FormType::buildForm
->add('category', 'phpcr_document', array(
'class' => 'Mango\CoreDomainBundle\Document\Category',
'property' => 'name'
))So, when I provide the path of the document it is resolved just fine. But when I want to use the identifier/uuid of the document, it won't resolve it correctly.
Is this a bug or am I using this incorrectly?
Note: I've read that you guys preferred using path over a uuid, but I can't use the path in my system. The uuid is much more convenient. That's why I use the uuid instead of using the documents path as id.