XF 2.0 Entity with auto_increment fields

_PkZ_

Active 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?
 
$yourEntity->getValue("autoIncrementColumn");
You could create a custom function in your entity class aswell which returns just that column for the given entity.
 
Top Bottom