Skip to content

Instantly share code, notes, and snippets.

@simensen
Created January 27, 2010 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simensen/288222 to your computer and use it in GitHub Desktop.
Save simensen/288222 to your computer and use it in GitHub Desktop.
<?php
$context->set('reposeSessionFactory', array(
'className' => 'substrate_orm_repose_SessionFactoryFactoryObject',
'constructorArgs' => array(
'configuration' => array(
'connection' => array(
'dsn' => '${s3a.dao.dsn}',
'username' => '${s3a.dao.username}',
'password' => '${s3a.dao.password}',
),
'classes' => array(
's3a_domain_model_Space' => array(
'tableName' => 'space',
'properties' => array(
'spaceId' => array( 'primaryKey' => true ),
'name' => null,
'phone' => null,
'addressLine1' => null,
'addressLine2' => null,
'city' => null,
'state' => null,
'zipcode' => null,
),
),
's3a_domain_model_SpaceNeighborhood' => array(
'tableName' => 'spaceNeighborhood',
'properties' => array(
'spaceNeighborhoodId' => array( 'primaryKey' => true ),
'space' => array(
'relationship' => 'many-to-one',
'className' => 's3a_domain_model_Space',
),
'neighborhood' => array(
'relationship' => 'many-to-one',
'className' => 's3a_domain_model_Neighborhood',
),
),
),
's3a_domain_model_SpaceUri' => array(
'tableName' => 'spaceUri',
'properties' => array(
'spaceUriId' => array( 'primaryKey' => true ),
'space' => array(
'relationship' => 'many-to-one',
'className' => 's3a_domain_model_Space',
),
'name' => null,
'uri' => null,
),
),
's3a_domain_model_Neighborhood' => array(
'tableName' => 'neighborhood',
'properties' => array(
'neighborhoodId' => array( 'primaryKey' => true ),
'name' => null,
'googleMapsCenterAddress' => null,
'googleMapsZoom' => null,
),
),
),
),
),
));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment