Sure thanks for your help
$this->paginate = [
'contain' => ['FromUsers', 'ToUsers']
];
$actions = $this->paginate($this->Actions);
$this->set(compact('actions'));
Error :
SELECT actions.id AS `Actions__id`,
actions.processing_id AS `Actions__processing_id`,
actions.from_user_id AS `Actions__from_user_id`,
actions.validation_user_id AS `Actions__validation_user_id`,
actions.to_user_id AS `Actions__to_user_id`,
actions.name AS `Actions__name`,
actions.description AS `Actions__description`,
actions.action_priority_id AS `Actions__action_priority_id`,
actions.action_status_id AS `Actions__action_status_id`,
actions.action_type_id AS `Actions__action_type_id`,
actions.due_date AS `Actions__due_date`,
actions.created AS `Actions__created`,
actions.modified AS `Actions__modified`,
FromUsers.id AS `FromUsers__id`,
FromUsers.customer_id AS `FromUsers__customer_id`,
FromUsers.first_name AS `FromUsers__first_name`,
FromUsers.last_name AS `FromUsers__last_name`,
FromUsers.email AS `FromUsers__email`,
FromUsers.password AS `FromUsers__password`,
FromUsers.role AS `FromUsers__role`,
FromUsers.address AS `FromUsers__address`,
FromUsers.postcode AS `FromUsers__postcode`,
FromUsers.city AS `FromUsers__city`,
FromUsers.country AS `FromUsers__country`,
FromUsers.phone AS `FromUsers__phone`,
FromUsers.job AS `FromUsers__job`,
FromUsers.avatar AS `FromUsers__avatar`,
FromUsers.company_id AS `FromUsers__company_id`,
FromUsers.created AS `FromUsers__created`,
FromUsers.modified AS `FromUsers__modified`,
ToUsers.id AS `ToUsers__id`,
ToUsers.customer_id AS `ToUsers__customer_id`,
ToUsers.first_name AS `ToUsers__first_name`,
ToUsers.last_name AS `ToUsers__last_name`,
ToUsers.email AS `ToUsers__email`,
ToUsers.password AS `ToUsers__password`,
ToUsers.role AS `ToUsers__role`,
ToUsers.address AS `ToUsers__address`,
ToUsers.postcode AS `ToUsers__postcode`,
ToUsers.city AS `ToUsers__city`,
ToUsers.country AS `ToUsers__country`,
ToUsers.phone AS `ToUsers__phone`,
ToUsers.job AS `ToUsers__job`,
ToUsers.avatar AS `ToUsers__avatar`,
ToUsers.company_id AS `ToUsers__company_id`,
ToUsers.created AS `ToUsers__created`,
ToUsers.modified AS `ToUsers__modified`
FROM actions Actions
INNER JOIN users FromUsers
ON ( FromUsers.id = ( actions.from_user_id )
AND customer_id = :c0 )
INNER JOIN users ToUsers
ON ( ToUsers.id = ( actions.to_user_id )
AND customer_id = :c1 )
LIMIT 20 offset 0