This commit is contained in:
parent
1f252011c2
commit
9cc162a934
@ -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:
|
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>
|
</code>
|
||||||
|
|
||||||
Now lets print out the drinkers club's creation date.
|
Now lets print out the drinkers club's creation date.
|
||||||
|
|
||||||
<code>
|
<code>
|
||||||
print $users['jack daniels']->Group['drinkers club']->createdAt;
|
print $users['jack daniels']->Group['drinkers club']->createdAt;
|
||||||
</code>
|
</code>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user