Aayush
Well-known member
I am creating a similar function as
to process entity data and return an array. I don't want to repeat myself by writing the same method for different entities so I was trying to extend the
class by using class extensions.
Is this the correct way to do it because I can't make it work. Or is there a better way to do it?
Code:
toArray()
Code:
\XF\Mvc\Entity\Entity
Is this the correct way to do it because I can't make it work. Or is there a better way to do it?