this is my code what should I do ? is not read in my project what\'s wrong with this code? am I wrong to write this code? Trying to get property \'id\' of non-object (View: