idealia/yii2-children-count-behavior (packagist): Behavior for counting records in the dependent objects and updating the relevant column after insert, edit and remove any child record.
Keywords: activerecord|yii|yii2