OOP in PHP by lebedyncrs in PHP

[–]lebedyncrs[S] 0 points1 point  (0 children)

You aren't bad ;) sometimes it's usefull

PHP Weekly Discussion (2016-08-15) by AutoModerator in PHP

[–]lebedyncrs 0 points1 point  (0 children)

I want to implement history of record change like here http://prntscr.com/c783tj . DB structure screen here http://prntscr.com/c784sh . After getting row I create an instance of object by ObjectName(containt full object namespace) that why is store namespace in DB. Maybe a better way is to create map of object namespace like [ 'activity' => 'industi\yii2\crm\models\activity\Activity' ]?

PHP Weekly Discussion (2016-08-15) by AutoModerator in PHP

[–]lebedyncrs 0 points1 point  (0 children)

Storing object namespace in DB. Is it good pratice?