@Michal

>> You can dump variable with var_dump().
>>
>> The error appeared because you tried to dump a really large piece of data.
>>

Thank you, but that's not it. The error message /says/ that, but it
can also be caused by a cyclic data structure. (A has a reference to
B, and B has a reference to A). Unfortunately, Doctrine/symfony
objects seem to be cyclic for some reason, so trying to dump even the
smallest row from your DB will cause the error (see below).

@Pietro

> Hi, if you need to dump an object as an array, use the ->toArray() method
> (assuming you are using Doctrine, though).
>
> Hope this helps,

Yes, it did!

Array\n(\n    \[id\] => 1\n    \[imageid\] => 36\n    \[user_id\] => 2\n)

You are a life saver :D

Thank you,

Luis.

-- 
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