There is such a relationship in Phalcon, I need this query ordered log_time DESC
log_time DESC
$this->hasMany('id', 'LogDevices', 'tk_fk', [ 'alias' => 'logs', 'order' => 'log_time DESC' ]);
Which right pair do I need to go through? thank you
With Phalcon 2 supported:
$this->hasMany('id', 'LogDevices', 'tk_fk', [ 'alias' => 'logs', 'params' => [ 'order' => 'log_time DESC' ] ]);
Source: https://habr.com/ru/post/1613455/More articles:Can I set a specific βrelease dateβ after the app is approved by Apple? - iosHow to convert Java object to Json formatting attribute name - javaAutomatically add version to js files inside asp.net runat = "server" header - javascriptWhy doesn't file loading work with ion content? and work if I remove ionic content - angularjsSpring Custom MVC Message for HTTP 400 - javaHow to declare a cursor after BEGIN? - syntaxDelphi / Firemonkey Changing iOS screen speed at runtime - iosHow to write files using utl_file in oracle - plsqlHow to show warning message about deleting parent node in symfony2 instead of exception page? - databaseCSS to center the image - cssAll Articles