1
0
mirror of synced 2024-12-14 07:06:04 +03:00

Fix typo in new indexed assocations tutorial, thanks @gordonslondon

This commit is contained in:
Benjamin Eberlei 2011-02-05 15:23:39 +01:00
parent 609176a18f
commit 94244683b0

View File

@ -259,7 +259,7 @@ now query for the market:
$market = $em->find("Doctrine\Tests\Models\StockExchange\Market", $marketId);
// Access the stocks by symbol now:
$stock = $market->getSymbol($symbol);
$stock = $market->getStock($symbol);
echo $stock->getSymbol(); // will print "AAPL"
@ -281,7 +281,7 @@ The same applies to DQL queries: The ``indexBy`` configuration acts as implicit
->getSingleResult();
// Access the stocks by symbol now:
$stock = $market->getSymbol($symbol);
$stock = $market->getStock($symbol);
echo $stock->getSymbol(); // will print "AAPL"