Fix typo in new indexed assocations tutorial, thanks @gordonslondon
This commit is contained in:
parent
609176a18f
commit
94244683b0
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue