As specified in https://pimcore.com/docs/5.x/Development_Documentation/Objects/Working_with_PHP_API.html, we can use
$result = DataObject\ClassName::getByMyfieldname($value, [int $limit, int $offset]);
to get an object/array of data objects which suits the value for that field.
My Code is following:
$product = Product::getByProductType("Base",1);
But it is unable to fetch the data objects and returns null every time.
$product = Product::getByProductType("Base");
In the case, it returns count 0 in the array.
Although I have more than 1000 data objects which satisfy the scenario.
Have anyone else faced this situation or in any way, help me out?
Thanks in advance.