About Us
Team
Values
Support
Open Source: dbentity
Overview
Download
Presentations and Articles
Examples: DBEntity Calling
Examples: DBEntity Classes
Examples: DBEntity Syntax
Examples: DB
Examples: DBQUERY
Examples: RBA
FAQ
Contact
ABOUT US
DBEntity - FAQ
What about administration? Why did you not auto-generate admin interfaces?
Good question. This is meant to be the "model" part of the MVC infrastructure. We think there is a great deal of promise for a project to build the "controller" infrastructure that might be powered in a similar way.
Why does create_ex return an array [$id, $stuff] (instead of an ID)?
create_ex returns an array because there is a chance it might create more than one entity in the database, and the second argument is a structured representation for other entities that are created.

For example, I can call:

// create a product, but create a category in the process.
mg('products')->create_ex('name', 'widget a', 'category', array('name' => 'hardware tools'));

... which will create the category before the product is created.