[Flow] Get the persistence_object_identifier
Marc Neuhaus
apocalip at gmail.com
Mon Feb 16 10:05:57 CET 2015
Make sure you don't have **any** whitespace inside the f:format.identifier
viewhelper.
For example: <f:format.identifiert>{mytable} </f:format.identifier> the " "
after "{mytable}" will trigger a to string casting in fluid which is
probably what happened to you. Same would happen with any other
whitespace/line break characters before or after "{mytable}"
Cheers
Marc
2015-02-16 9:02 GMT+01:00 Patric Eckhart <mail at patriceckhart.com>:
> Thank you for your answer but it does not work :-(
>
> #1273753083: Cannot cast object of type "MyPackage\MyName\Domain\Model\MyTable"
> to string.
>
>
> Its a relation, I tried to show the persistent_object_identifier from the
> other table and I get
>
> 1: Catchable Fatal Error: Object of class MyPackage\MyName\Domain\Model\MyTable
> could not be converted to string in ______________________________
> _________________
>
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>
More information about the Flow
mailing list