Update basics.md
Fixes
Merge pull request #3032 from arisk/patch-5

Update basics.md [skip ci]
updated phpdoc
renamed attributes to attributeNames in model

fixes #3034