{"version":"1.0","type":"rich","title":"Gist 3922836","description":"This visualization example demonstrates a code snippet from a PHP model’s `afterSave` hook, where a child record is created and linked to its parent via a foreign key. The snippet shows the instantiation of a `ChildModel`, assignment of the parent ID, and a call to `save`, followed by returning the parent’s `afterSave` result. It uses the Yii framework’s ActiveRecord pattern, as indicated by the `parent::afterSave()` call. The example highlights a common data-handling workflow, but no visual rendering or charting library is involved; it is purely a backend logic illustration.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-3922836?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}