Skip to main content
edited tags
Link
carlcs
  • 36.3k
  • 5
  • 63
  • 140
Source Link
Tim Kelty
  • 3.1k
  • 2
  • 19
  • 29

Getting all content, including Matrix fields from an EntryModel

Initially I was doing $entry->getContent()->getAttributes(), but noticed my Matrix fields were all null.

What is the right way to do this?

I see that $entry->myMatrixField gives me the ElementCriteriaModel for my Matrix that I need, I thought that would be the same as using `getAttribute('myMatrixField'), but i guess not.