(djtweet)hdknr@deblen:~/.ve/djtweet/apache/www$ more bootstrap.php
(djtweet)hdknr@deblen:~/.ve/djtweet/apache/www$ more inspectdb.php
require_once “bootstrap.php”;
Doctrine::generateModelsFromDb(‘models’, array(‘doctrine’),
array(‘generateTableClasses’ => true));
?>
(djtweet)hdknr@deblen:~/.ve/djtweet/apache/www$ sudo -u www-data php
inspectdb.php
hdknr@deblen:~/.ve/djtweet/apache/www$ tree -R models/ models/
|— AuthGroup.php |— AuthGroupPermissions.php
|— AuthGroupPermissionsTable.php |— AuthGroupTable.php
|— AuthMessage.php |— AuthMessageTable.php
|— AuthPermission.php |— AuthPermissionTable.php
|— AuthUser.php |— AuthUserGroups.php
|— AuthUserGroupsTable.php |— AuthUserTable.php
|— AuthUserUserPermissions.php |— AuthUserUserPermissionsTable.php
|— DiaryDiary.php |— DiaryDiaryTable.php
|— DiaryPart.php |— DiaryPartTable.php
|— DiaryPublisher.php |— DiaryPublisherTable.php
|— DjangoAdminLog.php |— DjangoAdminLogTable.php
|— DjangoContentType.php |— DjangoContentTypeTable.php
|— DjangoSession.php |— DjangoSessionTable.php
|— DjangoSite.php |— DjangoSiteTable.php
|— Tweets.php |— Tweets20090815.php
|— Tweets20090815Table.php |— TweetsBk.php
|— TweetsBkTable.php |— TweetsTable.php
|— TweetsTweet.php |— TweetsTweetTable.php
|— TweetsTweets.php |— TweetsTweetsTable.php
|— TweetsTwitter.php |— TweetsTwitterTable.php
`— generated |— BaseAuthGroup.php
|— BaseAuthGroupPermissions.php |— BaseAuthMessage.php
|— BaseAuthPermission.php |— BaseAuthUser.php
|— BaseAuthUserGroups.php |— BaseAuthUserUserPermissions.php
|— BaseDiaryDiary.php |— BaseDiaryPart.php
|— BaseDiaryPublisher.php |— BaseDjangoAdminLog.php
|— BaseDjangoContentType.php |— BaseDjangoSession.php
|— BaseDjangoSite.php |— BaseTweets.php
|— BaseTweets20090815.php |— BaseTweetsBk.php
|— BaseTweetsTweet.php |— BaseTweetsTweets.php
`— BaseTweetsTwitter.php 1 directory, 60 files
hdknr@deblen:~/.ve/djtweet/apache/www$ more models/TweetsTweet.php /**
* TweetsTweet
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME##
* @version SVN: $Id: Builder.php 6820 2009-11-30 17:27:49Z jwage $
*/
class TweetsTweet extends BaseTweetsTweet
{
}
hdknr@deblen:~/.ve/djtweet/apache/www$ more
models/generated/BaseTweetsTweet.php
/**
* BaseTweetsTweet
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @property integer $id
* @property string $author_id
* @property string $author_name
* @property string $author_nickname
* @property string $author_uri
* @property timestamp $published
* @property timestamp $updated
* @property string $link
* @property string $title
* @property string $content
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME##
* @version SVN: $Id: Builder.php 6820 2009-11-30 17:27:49Z jwage $
*/
abstract class BaseTweetsTweet extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName(‘tweets_tweet’);
$this->hasColumn(‘id’, ‘integer’, 4, array(
‘type’ => ‘integer’,
‘length’ => 4,
‘fixed’ => false,
‘unsigned’ => false,
‘primary’ => true,
‘autoincrement’ => true,
));
$this->hasColumn(‘author_id’, ‘string’, 20, array(
‘type’ => ‘string’,
‘length’ => 20,
‘fixed’ => false,
‘unsigned’ => false,
‘primary’ => false,
‘notnull’ => true,
‘autoincrement’ => false,
));
$this->hasColumn(‘author_name’, ‘string’, 50, array(
‘type’ => ‘string’,
‘length’ => 50,
‘fixed’ => false,
‘unsigned’ => false,
‘primary’ => false,
‘notnull’ => true,
‘autoincrement’ => false,
));
$this->hasColumn(‘author_nickname’, ‘string’, 50, array(
‘type’ => ‘string’,
‘length’ => 50,
‘fixed’ => false,
‘unsigned’ => false,
‘primary’ => false,
‘notnull’ => true,
‘autoincrement’ => false,
));
$this->hasColumn(‘author_uri’, ‘string’, 256, array(
‘type’ => ‘string’,
‘length’ => 256,
‘fixed’ => false,
‘unsigned’ => false,
‘primary’ => false,
‘notnull’ => true,
‘autoincrement’ => false,
));
$this->hasColumn(‘published’, ‘timestamp’, null, array(
‘type’ => ‘timestamp’,
‘fixed’ => false,
‘unsigned’ => false,
‘primary’ => false,
‘notnull’ => true,
‘autoincrement’ => false,
));
$this->hasColumn(‘updated’, ‘timestamp’, null, array(
‘type’ => ‘timestamp’,
‘fixed’ => false,
‘unsigned’ => false,
‘primary’ => false,
‘notnull’ => true,
‘autoincrement’ => false,
));
$this->hasColumn(‘link’, ‘string’, 255, array(
‘type’ => ‘string’,
‘length’ => 255,
‘fixed’ => false,
‘unsigned’ => false,
‘primary’ => false,
‘notnull’ => true,
‘autoincrement’ => false,
));
$this->hasColumn(‘title’, ‘string’, 256, array(
‘type’ => ‘string’,
‘length’ => 256,
‘fixed’ => false,
‘unsigned’ => false,
‘primary’ => false,
‘notnull’ => true,
‘autoincrement’ => false,
));
$this->hasColumn(‘content’, ‘string’, 256, array(
‘type’ => ‘string’,
‘length’ => 256,
‘fixed’ => false,
‘unsigned’ => false,
‘primary’ => false,
‘notnull’ => true,
‘autoincrement’ => false,
));
}
public function setUp()
{
parent::setUp(); }
}
Posted via email from 原宿工業大学 | Comment »