Skip to content

Form type 'phpcr_document' not resolving uuid/identifier to document #147

@koemeet

Description

@koemeet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions