Hi Marco, the entity attribute is mapped with type "blob". I create an instance and persist it without setting the attribute, so it is null. I just wonder why the column of the corresponding row in the Oracle table is not null afterwards. It's an Oracle Blob with a size of zero instead. If I load the entity again, the attribute is not null either, but a stream with a size of 0.
Regards Michael Am Dienstag, 10. November 2015 15:53:50 UTC+1 schrieb Marco Pivetta: > > Hi Michael, > > Check what is in your entity: usually, blob values are streams, and get > hydrated and persisted as such. > > Marco Pivetta > > http://twitter.com/Ocramius > > http://ocramius.github.com/ > > On 10 November 2015 at 08:31, Michael Drewek <[email protected] > <javascript:>> wrote: > >> Hi, >> >> I'm using Doctring with Oracle in a project. One of my entities has an >> attribute mapped with type "blob" to an Oracle column. >> >> This column is nullable. However, if I persist one object of this entity >> without setting the blob-attribute, an empty blob exists in the column >> afterwards. It has a size of 0, but the column is not considered NULL by >> the db. >> >> If i use SQL to insert a record without having data for the blob column, >> it is considered NULL. >> >> Is this the intended behavior? Actually, I don't want to check the size >> of the stream returned by the entity, just to see that the blob is empty... >> >> Is there something I can do to work around this? >> >> Thanks for any help. >> >> Regards >> Michael >> >> -- >> You received this message because you are subscribed to the Google Groups >> "doctrine-user" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/doctrine-user. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
