Just a note: the word "add" implies there is a possibility of having more than one title/author, you should use the word "set". "Add" works better for comments as there are more than one but in your case you're overriding the comments array with the value, not adding them.
Yes, that makes more sense. While recording i was thinking of a scenario where a book has authors ans co-authors but never actually used that concept. Good tip for the future.
getter and setter methods can be auto generated with ALT + Insert in Netbeans. Makes life much easier!
Awesome videos BTW.
Cheers
namesnikola 2 years ago
Just a note: the word "add" implies there is a possibility of having more than one title/author, you should use the word "set". "Add" works better for comments as there are more than one but in your case you're overriding the comments array with the value, not adding them.
rumco 2 years ago
Yes, that makes more sense. While recording i was thinking of a scenario where a book has authors ans co-authors but never actually used that concept. Good tip for the future.
integral30 2 years ago
Thank You for the next great ZendFramework tutorial. Please don't stop posting :-)
fzr69 2 years ago