[Flow] Get the persistence_object_identifier

MarxDesign | Bernhard Marx bernhard.marx at marxdesign.de
Mon Feb 16 10:09:40 CET 2015


Hello,

I added a property getter on the model...

public function getIdentifier(){ return $this->Persistence_Object_Identifier; }



-----Ursprüngliche Nachricht-----
Von: flow-bounces at lists.typo3.org [mailto:flow-bounces at lists.typo3.org] Im Auftrag von Marc Neuhaus
Gesendet: Montag, 16. Februar 2015 10:06
An: Patric Eckhart; TYPO3 Flow mailing list
Betreff: Re: [Flow] Get the persistence_object_identifier

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
>
_______________________________________________
Flow mailing list
Flow at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow


More information about the Flow mailing list