In this blog, you will learn about Pimcore Data Objects. Pimcore Object helps you to manage the structured data within the PIM. Based on the data objects and attributes, the user can create the product structure data according to his use case.
Pimcore data objects are similar types of objects that we use in object-oriented programming. With the Pimcore, you can create the objects with UI. For example, if you are creating any class with UI then it will create a custom PHP class in the background.
The user can use this custom PHP class with the help of the inheritance feature of OOPS. It will make the managing of data easier in Pimcore.
What is Pimcore?
Pimcore is an award-winning open-source software for customer experience management, product information management (PIM/MDM), digital asset management (DAM) and eCommerce. With Magento 2 Pimcore integration, all the digital media assets, product information, and catalog data can be easily managed from one instance.
According to the survey, Pimcore is used by more than 80,000 companies in 56 countries. Pimcore provides features like Data Modeling, Data Management, Data Integration & Delivery, and Data Quality & Semantics.
Pimcore provides the self API-Driven service-based Architecture for connecting to third-party software such as ERP, CRM, and eCommerce Channels.
Types of Data Objects
To define the data objects in Pimcore, you can go to the Pimcore admin panel where you have to navigate to Setting -> Data Objects.
Here you will get the all the Data Objects Type:
If you want to start your Pimcore Project then firstly, you have to define the Classes and Objects in Pimcore. To create the classes in Pimcore, you have to navigate Setting -> Data Objects -> Classes.
For creating any new class in Pimcore, you can click on the new button “Add”. Here you can enter the Class Name and Unique Identifier.
After entering the details, you can click on the “OK” button. You can see the order details of the class after saving it.
You can check and change these details of a class in Pimcore.
- Parent PHP class
- Link Provider Class or Service Name
- Allow Inheritance and many more.
Field-Collections are the collection of data and layout fields that can be used in the Pimcore for creating one too many relationships. A Field collection is very similar to objects.
A Field collection has also the class name or field definition name which can be used as a set of the field and data to an object. When you are adding the field collection to an object then you need to first define the allowed field definition type.
For creating a Field Collection, you can navigate to Setting -> Data Objects -> Field-Collections. Here you can see all the Field Collections created by the users.
After clicking on the “Add” button, you can see the option to add the options in the field-collections.
One of the best examples, you can see for the Field-Collections in Pimcore is if you have some common images in the products then you can make a field-collection in Akeneo and can add the common images in each product.
The Objectbricks are the most important feature of Pimcore for storing the data. It will help to create a type of attribute set and the attributes related to it.
For example, if you have products like the car then all the products have some attribute set like Engine which has attributes like cylinders, capacity, power, and engine.
To create an Objectbricks, the user can navigate to the Setting -> Data Objects -> Objectbricks. You can check here all the Objectbricks created by users.
After that, the user can add the attributes in Objectbricks.
The Quantity Value in Pimcore is basically used for adding the weight, dimension, and metric types of data. For example, if you are selling automobile products like Tires then you can add the diameter of the tire and thickness with the products.
For adding the Quantity Value, the user can navigate to Setting -> Data Objects -> Quantity Value.
Here the user can click on the “Add” button to add a new “Quantity Value”. The user can enter the Abbreviation, Long Name, and Base Unit for creating a Quantity Value.
To use this Quantity Value, the user can go to class and where he will get the option to add it.
Classification Store is similar to Objectbricks. It is also used to store the data that is common to all products.
For example, you have a product name “Shoes”. There will be common attributes like name, color, and description which is commonly shared. You can create these attributes in common product class definition.
So, you can add attributes like text fields, numbers, dates, selects, and multi-selects with the Classification Store. A Classification Store is a key/value data types which add an arbitrary number of key/value pairs to objects.
For creating a Classification Store, you can navigate to the Setting ->Data Objects ->Classfication Store. Click on the add button –
Here you have to enter the details like Key Definitions, Groups, and Group Collections. You can click on the key definition where you can enter the Name and type of keys.
After that, you can create a Key Definitions Groups for storing it.
After creating the Groups, you can create the Group Collections in Pimcore. You can assign Groups in a Group Collections.
If you want to learn more about the Pimcore Data Objects then please create a ticket at https://webkul.uvdesk.com/en/. For any pre-sales queries or customization discussion, please drop an email to firstname.lastname@example.org