Our database administrator asked me to drop all the relation between the tables in the database, and replace in code, meaning create the relation in php code instead of inside the DB itself.
Example: $this->belongsTo('id','App\Request','request_id', [ 'foreignKey'=> [ 'action'=>\Phalcon\Mvc\Model\Relation::ACTION_CASCADE ] ] );
We both bad a long debate regarding this, the main key of the debate was was the performance and data source best usage.
the question is whis is better regarding performance? a real db relation or doing this in coding? @phalconphp @phalcon