Hello,

I'm quite new with symfony and I'm trying to make it work with PostGIS thru doctrine. I installed sfMapFishPlugin but my problem seems to be as basic as managing a blob/bytea field.

So by considering only the blob question, here is my problem :
- I design a table with a blob that looks like this in schema.yml

MyTable:
  actAs: { Timestampable: ~ }
  columns:
    category_id:  { type: integer, notnull: true }
    my_blob:         { type: blob() }

Then I auto-generate the module based on my table. I'm able to access the index and to create a new record, the record is correctly inserted in the DB, in pgdamin my blob field is correctly displayed (some simple ascii content for the moment).

But when I try to read the content of my record thru Symfony (for example in the show/id auto-generated page), everything is displayed excepted my blob field which is empty. Looking on the internet I found stuff mentionning to use stream_get_content or pg_unescape_bytea but nothing works.

Did someone ever managed to get some content out of a blob.

Or did someone already used (successfully) sfMapFishPlugin to manipulate some PostGIS data.

Thanks

Steph

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to