We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

sonething about listener

I want to listener the function

    $result = $this->builder()
        ->where('tw.uid = :uid:',array('uid'=>intval($uid)))

I want to do something after toArray(),every builders run toarray,i hope it will show 1231 after running toarray()?? such as aftertoArray(),can phalcon listen it?

edited Oct '16

What you mean ? Maybe just use CONCAT_WS in query ? And it will return concated 1231. Also if you want to select only one row use getSingleResult instead of execute. Then it will just returns ["1231"]