1
0
mirror of synced 2025-01-17 22:11:41 +03:00
This commit is contained in:
zYne 2007-09-01 22:43:40 +00:00
parent 1f252011c2
commit 9cc162a934

View File

@ -1,4 +1,4 @@
++ MAP keyword
+++ MAP keyword
The MAP keyword offers a way of mapping certain columns as collection / array keys. By default Doctrine maps multiple elements to numerically indexed arrays / collections. The mapping starts from zero. In order to override this behaviour you need to use MAP keyword as shown above:
@ -26,7 +26,7 @@ $users = $q->execute();
</code>
Now lets print out the drinkers club's creation date.
<code>
print $users['jack daniels']->Group['drinkers club']->createdAt;
</code>