We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Can you add getOneRelated - just to select one row

Hello ,

i just want to suggest a things that i think is missed

We have already method getRelated

but is that any other method just allow us to get the first Related row ?

Thanks .



77.6k
Accepted
answer

getRelated() returns a ResultsetInterface, which has a getFirst() method

:o oh good news

thanks