xpdosimpleobject.map.inc.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /*
  3. * Copyright 2010-2015 by MODX, LLC.
  4. *
  5. * This file is part of xPDO.
  6. *
  7. * xPDO is free software; you can redistribute it and/or modify it under the
  8. * terms of the GNU General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option) any later
  10. * version.
  11. *
  12. * xPDO is distributed in the hope that it will be useful, but WITHOUT ANY
  13. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  14. * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along with
  17. * xPDO; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
  18. * Suite 330, Boston, MA 02111-1307 USA
  19. */
  20. /**
  21. * Metadata map for the xPDOSimpleObject class.
  22. *
  23. * Provides an integer primary key column which uses SQLite's native
  24. * integer primary key generation facilities.
  25. *
  26. * @see xPDOSimpleObject
  27. * @package xpdo
  28. * @subpackage om.sqlite
  29. */
  30. $xpdo_meta_map['xPDOSimpleObject'] = array (
  31. 'table' => null,
  32. 'fields' => array (
  33. 'id' => null,
  34. ),
  35. 'fieldMeta' => array (
  36. 'id' => array(
  37. 'dbtype' => 'INTEGER',
  38. 'phptype' => 'integer',
  39. 'null' => false,
  40. 'index' => 'pk',
  41. 'generated' => 'native',
  42. )
  43. ),
  44. 'indexes' => array (
  45. 'PRIMARY' => array (
  46. 'columns' => array(
  47. 'id' => array()
  48. ),
  49. 'primary' => true,
  50. 'unique' => true
  51. )
  52. )
  53. );