Page::findPagesWithSame($fields[,$include_self])
Version 3.8
Get pages that have same value
Version 3.8
Get pages that have same value
Object Pages
Get other Orders for the same client:
$Orders = $Order->findPagesWithSame('client');
Get Orders for the same client, this Order included:
$Orders = $Order->findPagesWithSame('client',true);
Get other Orders for the same client that are currently ready:
$Orders = $Order->findPagesWithSame('client&status=Ready');
Get other Orders for the same client that are not in the same status:
$Orders = $Order->findPagesWithSame('client&status!=');
Get other Orders for the same client that are older:
$Orders = $Order->findPagesWithSame('client&order_number<');
// NOTE!!! hakee <=, mutta include_self pudottaa kyeisen laskun pois.
Get other Orders for the same client that are newer:
$Orders = $Order->findPagesWithSame('client&order_number>');
// NOTE!!! hakee >=, mutta include_self pudottaa kyseisen laskun pois.
Get other Orders for the same client that have lower or same price:
$Orders = $Order->findPagesWithSame('client&total_amount<=');
Get other Orders for the same client that have higher or same price:
$Orders = $Order->findPagesWithSame('client& total_amount>=');
Get other Order Rows that are in the same Order than this row:
$Orderrows = $OrderRow->findPagesWithSame('order__orderrows');
Get all Order Rows that are in the same Order and have the same product than this row:
$Orderrows = $OrderRow->findPagesWithSame('order__orderrows&product',true);