fixed can not find foreign_keys method
removed php close tags