1
0
mirror of synced 2024-12-05 03:06:05 +03:00

component name conversion bug fixed

This commit is contained in:
doctrine 2006-05-16 09:22:32 +00:00
parent 03d1049015
commit 814eef8098
6 changed files with 17 additions and 11 deletions

View File

@ -1,9 +1,13 @@
<?php
/**
* class Doctrine_Access
* Doctrine_Access
*
* the purpose of Doctrine_Access is to provice array access
* the purpose of Doctrine_Access is to provice array access
* and property overload interface for subclasses
*
* @package Doctrine ORM
* @url www.phpdoctrine.com
* @license LGPL
*/
abstract class Doctrine_Access implements ArrayAccess {
/**

View File

@ -2,7 +2,6 @@
require_once("Configurable.class.php");
require_once("EventListener.class.php");
/**
* @author Konsta Vesterinen
* @package Doctrine ORM
* @url www.phpdoctrine.com
* @license LGPL

View File

@ -439,7 +439,7 @@ class Doctrine_Query extends Doctrine_Access {
}
/**
* parseData
* parses a PDOStatement
* parses the data returned by PDOStatement
*
* @return array
*/
@ -826,8 +826,6 @@ class Doctrine_Query extends Doctrine_Access {
final public function load($path, $fetchmode = Doctrine::FETCH_LAZY) {
$e = explode(".",$path);
foreach($e as $key => $name) {
$low = strtolower($name);
$name = ucwords($low);
try {
if($key == 0) {
@ -886,6 +884,7 @@ class Doctrine_Query extends Doctrine_Access {
}
} catch(Exception $e) {
throw new DQLException($e->getMessage(),$e->getCode());
}
}

View File

@ -47,8 +47,8 @@ class Sensei_Session extends Doctrine_Record {
* @return void
*/
public function setUp() {
$this->ownsMany("Sensei_variable","Sensei_variable.session_id");
$this->hasOne("Sensei_entity","Sensei_session.entity_id");
$this->ownsMany("Sensei_Variable","Sensei_Variable.session_id");
$this->hasOne("Sensei_Entity","Sensei_Session.entity_id");
}
/**
* setTableDefinition
@ -210,7 +210,7 @@ class Sensei extends Doctrine_Access {
$this->record->user_agent = $_SERVER['HTTP_USER_AGENT'];
$this->record->updated = time();
$this->record->session_id = $id;
$this->vars = $this->record->Sensei_variable;
$this->vars = $this->record->Sensei_Variable;
if($this->record->getState() == Doctrine_Record::STATE_TDIRTY) {
$this->record->created = time();

View File

@ -186,8 +186,6 @@ abstract class Doctrine_Session extends Doctrine_Configurable implements Countab
* @return object Doctrine_Table
*/
public function getTable($name) {
// $name = ucwords(strtolower($name));
if(isset($this->tables[$name]))
return $this->tables[$name];

View File

@ -218,6 +218,9 @@ class Doctrine_Table extends Doctrine_Configurable {
break;
endswitch;
}
/**
* @return Doctrine_Repository
*/
public function getRepository() {
return $this->repository;
}
@ -334,7 +337,10 @@ class Doctrine_Table extends Doctrine_Configurable {
return $this->bound;
}
/**
* returns a bound relation array
*
* @param string $name
* @return array
*/
final public function getBound($name) {
if( ! isset($this->bound[$name]))