[TYPO3-mvc] Extbase PropertyMapper in 1.2.0 (TYPO3 4.4)
Franz Koch
typo3.RemoveForMessage at elements-net.de
Fri Feb 11 10:37:43 CET 2011
Hey,
> Previously I was able to do this:
by previously you mean extbase 1.1.1 or extbase 1.2.0?
> $propertyMapper->map(array('cartItems'), array('cartItems' =>
> $cartItems), $this->customer);
may I ask you why you do the mapping manually and not have extbase do
the job?
> Not sure, but I think since TYPO3 4.4 (Extbase 1.2) this
> doesn't work anymore as the cartItems are empty then.
>
> $cartItems is an array:
> Array(
> [5] => Array(
> [quantity] => 15
> [__identity] => 5
> )
> )
>
> It's about updating a cart item's quantity.
>
> Has there anything changed in the property mapper
> which would cause to clear all cart items instead
> of updating the quantity?
From what I've seen in the code (current trunk), the expected behavior
according to your $cartItems array would be to wipe out any cartItem
except the one with UID 5 and update it's quantity. And that's not
happening for you?
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list