original_string: public function afterSave(Event $event, FieldInstance $instance, ArrayObject $options = null)
      {
          if ($instance->isNew()) {
              $instance->afterAttach();
          }
      }
code: public function afterSave(Event $event, FieldInstance $instance, ArrayObject $options = null)
      {
          if ($instance->isNew()) {
              $instance->afterAttach();
          }
      }
code_tokens: public function afterSave ( Event $ event , FieldInstance $ instance , ArrayObject $ options = null ) { if ( $ instance -> isNew ( ) ) { $ instance -> afterAttach ( ) ; } }
docstring: Triggers the callback "afterAttach" if a new instance was created.
  
  @param \Cake\Event\Event $event The event that was triggered
  @param \Field\Model\Entity\FieldInstance $instance The Field Instance that was saved
  @param \ArrayObject $options the options passed to the save method
  @return void
docstring_tokens: Triggers the callback afterAttach if a new instance was created .