[UPDATE]
Looks like a bounty hunter has stepped up to the task and fixed my issue. Right on man! Now I am sure I will be running into more AMF + POG + PHP issues in the future. If they get too time consuming or just can’t get em, I will be issuing further bounties. Thanks for the help R.E.!!!
[ORIGINAL]
So I have been really trying to tackle the whole ORM thing for a while now. I sometimes suspect that AMFPHP is just a pain. It deceivingly allows simple transactions between Flex, AMF, and MySQL when making manual queries. But trying to get it working with various frameworks just does not want to work. The only ORM I have successfully gotten to work with it is Junction which, though working and simple enough, has a funky API I just don’t like. Maybe if no other WORKING options are available, I will just digest it and proceed. But being OCD, I want something for me that makes a helluva lot of sense.
Enter POG. For those of you who don’t know what POG is, it stands for PHP Object Generator. The API is exactly what I am looking for. Simply update the object properties much like you would any ActionScript object. Okay so enough of the honeymoon BS. It works great outside of AMFPHP. But the minute it needs to work in concert with AMFPHP, if it makes any database call, it likes to crap out. Either it can’t seem to find the PDO driver, or it fails silently or some other stupid unknown reason.
I am issuing a bounty (a.k.a. monetary reward). I am going to be uploading my test project which will include the deployment and the flex source. If you can successfully make this P.O.S. work, then I will sending $150+ your way (if you think this is not enough, then let’s talk about it). Forums and user groups can get your far, but only so far. Here is(are?) the criteria:
- make a flex to service call entailing a successful CRUD method.
- have flex respond reflecting an ActionScript VO representation of the POG object.
- have the AMFPHP browser successfully be able to test the services.
- ensure that this will work in my dev environment which is MAMP (I really don’t want to have to mess with new environments. MAMP works great for me in many capacities).
Why am I issuing this bounty. Many reasons but the main two are:
- The opportunity costs for me trying to aimlessly figure this out on my own have cost me dearly. I’d rather make better use of someone else’s time by paying for their expertise allowing me to truly focus on the end game of getting my application out to the public.
- If there is a successfully melding of Flex + AMFPHP + POG, then we have just introduced a huge opening for the use of a very simple ORM framework. No more complex setups, no more funky APIs, no more manual queries. Just easy OOP the whole way throughout the development process. That way you as fellow developers do not incur costly opportunity costs as I have.
The test project source can be downloaded here. I look forward to some bounty hunters emailing me 😉 => jwopitz (at) gmail.
Wednesday, March 19, 2008 at 1:39 pm
Author, it’s your best post in this blog. I sent it to all my friends! Big thanks for article.
Tuesday, April 7, 2009 at 8:32 pm
Hi there, like the concept of using POG with fl;ex and amfphp, what was the solution to your issue?
would you mind posting it?
Thanks,
Marc
Tuesday, April 7, 2009 at 8:37 pm
I can’t rightly say since its been so long since I did this. I will have to look back at some conversations with the guy who helped fix it get back to you.
Wednesday, April 8, 2009 at 2:45 pm
that would be greatly appreciated!
thanks, Marc
Friday, April 10, 2009 at 8:34 pm
Marc,
You might want to read these posts that I made shortly after issuing the bounty. I can’t find my transcripts of the conversation I had but I do know these post were a direct result of having my issues addressed.
https://jwopitz.wordpress.com/2008/03/12/tutorial-flex-amfphp-pog/
https://jwopitz.wordpress.com/2008/03/20/as3pogkit/
Keep in mind these are over a year old and I haven’t really had time to mess with the project since then. It should get you started though.