XF 2.0 Entity with auto_increment fields

_PkZ_

Member
When i create an Entity, set fields and call save(), when that entity have an autoincrement column - how can i get that one right after save are finished?
 

S Thomas

Well-known member
$yourEntity->getValue("autoIncrementColumn");
You could create a custom function in your entity class aswell which returns just that column for the given entity.
 
Top