Attributes & Families
Dynamic EAV-like attribute system for technical specifications.
Attributes & Families
Obelaw PIM employs a flexible EAV-like (Entity-Attribute-Value) system that allows you to define unlimited technical specifications without altering your database schema.
Dynamic Attributes
This system is ideal for products with specialized data requirements, such as:
- Ingredients lists (e.g., Food products)
- Technical specifications (e.g., Voltage, RPM, Dimensions for electronics)
Usage
Attributes can be assigned to product variants using the VariantDTO.
use Obelaw\Pim\Data\VariantDTO;
$variant = new VariantDTO(
sku: 'TSHIRT-S',
price: 19.99,
stock: 10,
attributes: [1, 2] // Attribute IDs
);