Overview

Namespaces

  • Alchemy
    • core
      • query
      • schema
    • dialect
    • engine
    • orm
    • tests
    • util
      • promise
  • PHP

Classes

  • DataMapper
  • DDL
  • ManyToOne
  • OneToMany
  • OneToOne
  • ORMQuery
  • ORMTable
  • ORMTableRef
  • RelatedSet
  • Relationship
  • Session
  • SessionSelect
  • WorkQueue
  • Overview
  • Namespace
  • Class
  • Tree

Class DDL

Controller for performing DDL operations on the database

Namespace: Alchemy\orm
Located at alchemy/orm/DDL.php
Methods summary
public
# __construct( Alchemy\orm\Session $session )

Object constructor

Object constructor

Parameters

$session
Alchemy\orm\Session
$session
public
# create( string $cls )

CREATE the table for the given DataMapper class

CREATE the table for the given DataMapper class

Parameters

$cls
string
$cls Class Name of DataMapper child
public
# createAll( )

Find all subclasses of DataMapper and run Alchemy\orm\DDL::create() on each of them.

Find all subclasses of DataMapper and run Alchemy\orm\DDL::create() on each of them.

public
# drop( mixed $cls )

DROP the table for the given DataMapper class

DROP the table for the given DataMapper class

public
# dropAll( )

Find all subclasses of DataMapper and run {DDL::drop()} on each of them.

Find all subclasses of DataMapper and run {DDL::drop()} on each of them.

API documentation generated by ApiGen 2.8.0