Hi,
Aliased lists are meant to retrieve lists based on an aliased bean (column).
This is a 1-to-X relation where X can be any exact number, for instance 2.
Let's say we have lines and each line has exactly two points A and B.
Now we could use $line->ownPoint but since we know we need exactly 2 we can also call them: pointA and pointB.
However, while they are called pointA and pointB they still are 'points'.
Now we can see which lines cross point A using:
$a->alias('point_a')->ownLine
Full example:
$points = R::dispense('point', 2);
$line = R::dispense('line');
$line->pointA = $points[0];
$line->pointB = $points[1];
R::store($line);
$line2 = R::dispense('line');
$line2->pointA = $line->pointA;
$line2->pointB = R::dispense('point');
R::store($line2);
//now we have two points per line (1-to-x)
//I want to know which lines cross A:
$a = R::load('point', $line->pointA->id); //reload A
print_r($a->alias('point_a')->ownLine);
cheers,
Gabor