Add book

Why you create new book instance inside another book instance?
And you again use setState from outside. Method setState() can use only ActiveRecord inside find methods. Use set- methods for property.