{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/973","repository_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle","labels_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/973/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/973/comments","events_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/973/events","html_url":"https://github.com/sonata-project/SonataMediaBundle/issues/973","id":140555389,"number":973,"title":"Persist metadata on custom provider","user":{"login":"xmon","id":4361296,"avatar_url":"https://avatars.githubusercontent.com/u/4361296?v=3","gravatar_id":"","url":"https://api.github.com/users/xmon","html_url":"https://github.com/xmon","followers_url":"https://api.github.com/users/xmon/followers","following_url":"https://api.github.com/users/xmon/following{/other_user}","gists_url":"https://api.github.com/users/xmon/gists{/gist_id}","starred_url":"https://api.github.com/users/xmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xmon/subscriptions","organizations_url":"https://api.github.com/users/xmon/orgs","repos_url":"https://api.github.com/users/xmon/repos","events_url":"https://api.github.com/users/xmon/events{/privacy}","received_events_url":"https://api.github.com/users/xmon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-14T02:00:52Z","updated_at":"2016-04-27T00:55:53Z","closed_at":null,"body":"I'm developing a bundle to enable video upload and processing on the server side with ffmpeg.\r\n\r\nI need to save the name of the videos in each of the formats I codified.\r\n\r\nThe idea is to keep as metadata, but I have problems realizing it.\r\n\r\nWhen using setMetadataValue() on a [specific function](https://github.com/xmon/SonataMediaProviderVideoBundle/blob/v0.0.3-beta/Provider/VideoProvider.php#L250) of my provider, do not persist in the database, from another fixFilename() function, I get to persist with setMetadataValue (). But here I do not have the names of the files.\r\n\r\nAny idea how to get it?\r\n\r\nThank you so much for everything"},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/comments/214933545","html_url":"https://github.com/sonata-project/SonataMediaBundle/issues/973#issuecomment-214933545","issue_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/973","id":214933545,"user":{"login":"xmon","id":4361296,"avatar_url":"https://avatars.githubusercontent.com/u/4361296?v=3","gravatar_id":"","url":"https://api.github.com/users/xmon","html_url":"https://github.com/xmon","followers_url":"https://api.github.com/users/xmon/followers","following_url":"https://api.github.com/users/xmon/following{/other_user}","gists_url":"https://api.github.com/users/xmon/gists{/gist_id}","starred_url":"https://api.github.com/users/xmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xmon/subscriptions","organizations_url":"https://api.github.com/users/xmon/orgs","repos_url":"https://api.github.com/users/xmon/repos","events_url":"https://api.github.com/users/xmon/events{/privacy}","received_events_url":"https://api.github.com/users/xmon/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T00:55:53Z","updated_at":"2016-04-27T00:55:53Z","body":"This is not real solution, \r\n\r\nin PrePersist function, always generate *_/0001/01/_* route with\r\n`$this->generatePath($media)`\r\n\r\nIn PostPersist function\r\n`$this->generatePath($media)`\r\ngenerate the correct route for file path.\r\n\r\nHow can I update metadata information after Persist?\r\n\r\nthanks a lot."}}