xpdosimpleobject.map.inc.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 MySQL's native
  24. * auto_increment primary key generation facilities.
  25. *
  26. * @see xPDOSimpleObject
  27. * @package xpdo
  28. * @subpackage om.mysql
  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. 'attributes' => 'unsigned',
  43. )
  44. ),
  45. 'indexes' => array(
  46. 'PRIMARY' =>
  47. array(
  48. 'alias' => 'PRIMARY',
  49. 'primary' => true,
  50. 'unique' => true,
  51. 'type' => 'BTREE',
  52. 'columns' =>
  53. array(
  54. 'id' =>
  55. array(
  56. 'length' => '',
  57. 'collation' => 'A',
  58. 'null' => false,
  59. ),
  60. ),
  61. )
  62. )
  63. );