In my Collection.php when i get the collection by $this->getData() is give me collection.

But it create some other problem for me .

Now i use $this->getResource() then problem solved But it not return data .

Can any one here, Please tell me why collection is empty when i use $this->getResource() ?

Thank you.

1 Answer 1


it resolved

i just clone my $collection .

$collection= clone $this;

it work now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.