Add EntityTrait with to methods: fromArray() and toArray()