4 ms·
Great effort, I'd love to see the finished product. I have been contemplating of migrating my own e-commerce platform (http://demo.embwebstores.com http://demo.
by ewsplat 14y ago
Great effort, I'd love to see the finished product. I have been contemplating of migrating my own e-commerce platform (http://demo.embwebstores.com http://demo.embwebstores.com) to MongoDB and one of the new frameworks - Laravel.
I wonder if you found the lack of relational data an obstacle? Maybe not now but do you see it being a problem down the road?
- ericingram 14y agoWe didn't find the lack of relational queries an obstacle at all. The model in Forward handles relationships in a way that makes it feel easy. Model fields can be defined as a callback: // class Accounts ... 'orders' => function ($account) { return get("/orders", [account_id => $account['id']]); } Get an account, access the relationship: {get $account from "/accounts/123"} You have {pluralize "{$account.orders.count} orders"} {foreach $account.orders as $order} ... {/foreach} This also works as expected: {get $orders from "/accounts/123/orders"} It would be cool if you built your platform on Forward. Just sayin' :)