It seems Phalcon (4.1.0) does not support multiple filelds in many to many relationship. Foreign keys have been created in MySQL database. This is my code in initialize() function.
$this->hasManyToMany( ['id1', 'id2'], RelationshipTable::class, ['id3', 'id4'], ['id5', 'id6'], Parts::class, ['id1', 'id2'], [ 'reusable' => true, 'alias' => 'parts' ] );
It throws error: "Not supported", [internal function]: Phalcon\Mvc\Model\Manager->getRelationRecords()