Reputation: 55
Simple question that has been driving me nuts. I am working on a project in Flashbuilder, have generated a php service. I have had to make some changes to the database. How do I get flashbuilder to recognize these changes. I have made changes to the php methods and I know how to get them to recognize that. It is just the added fields in my database, how do I get them into the php and then into the corresponding actionscript object.
Thanks
Upvotes: 1
Views: 463
Reputation: 11029
Every time you change the database, you have to 'refresh' the model (your PHP page). In Flex it is called a value object (VO), which is just a PHP class that represents and stores the data from the database.
When the database table changes, the VO object must also change or the new additions to the database will not accessible.
What is happening is that FlashBuilder is seeing the old version of your VO object because it has not been updated. You can write a VO manually in PHP and import it or use the FlashBuilder wizard to re-create it based on the new database tables without having to code, like you did the first time you created it.
For further information on the topic, see: http://www.flashrealtime.com/flash-builder-4-and-php-data-services/
Upvotes: 2
Reputation: 98
Are you using Value Objects?
Anyway, try to do this: 1. refresh your services in flash builder (right click -> refresh, or just hit the button) 2. right click on your service in flash builder and determine output type. This simple process will ask you the parameters that the php service needs and it will generate the new object
Upvotes: 0