Hallo,
folgendes Problem: Ich brauche aus dem Attribute/Customer Model ein Attribut für einen bestimmten $customer. Ich kenne von diesem Attribut nur den Namen.
// Get Customer
$customerModel = Shopware()->Models()->getRepository('Shopware\Models\Customer\Customer');
/** @var $customer \Shopware\Models\Customer\Customer */
$customer = $customerModel->findOneBy(array('id' => $user));
/** @var $attribute \Shopware\Models\Attribute\Customer */
$attribute = $customer->getAttribute()->fromArray($data);
Kann ich nun auf das Attribut mit der Methode fromArray($data) zugreifen bzw. dieses holen?
Welche Form muss dann das $data-Array haben?