By Fagault Eric on Saturday, 13 October 2018
Posted in General
Likes 0
Views 361
Votes 0
Hello,
I'm trying to get the ID of the creator of a story.
For the name of this creator I do:

$Page->getCreator() ->getName();

I can not retrieve the ID
What should I do ?

Best regards.

Eric
If you var_dump this var_dump($page->getCreator());exit; , it will return you the socialUser object which included the user id.

So you can use following code to retrieve the creator id.


$page->getCreator()->id
·
Sunday, 14 October 2018 11:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank You very much
·
Sunday, 14 October 2018 15:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Erik

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Sunday, 14 October 2018 17:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post