In order to demonstrate the Webel recipe for PHP the database interactions for the demo modules on this site are made deliberately very simple. This is in part to simplify the representation of those parts of the module involving the database interaction, but largely because I have not yet reverse engineered the Drupal7 core entity/field system of the Entity API system into the Webel UML recipe for UML.
For example, the Flag Plus contributed module currently (as of 2015-04-20) has a very simple single table managed with the help of a helper class BannerSchema and some other helper classes like BannerFlagHelper that leverage it and offer a few simple database CRUD methods.
Note also that as soon as you make a Drupal7 entity "fieldable" you have to deal with additional field-related DB tables.
© Copyright 2001 - 2016 Webel IT Australia (ABN: 67 677 268 579). All rights reserved (except as specified below).
PHP code examples from Webel IT Australia on this site are distributed under the GNU General Public License.
Excludes text and code snippets from Drupal.org quoted for educational purposes.
Drupal’s online documentation is © 2000-2014 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0.
PHP code from Drupal.org is distributed under the GNU General Public License.
Drupal® is a registered trademark of Dries Buytaert.
Text quoted from Wikipedia for educational purposes is made available under the Creative Commons Attribution-ShareAlike License.
Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.
Site developed by Webel IT Australia.