Permalink
Browse files

Committing mass of changes, related primarily to ticket:11 and ticket…

…:365. Current unit tests are passing, but there are still unit tests that need to be written to verify this behavior.
  • Loading branch information...
1 parent bfa97ba commit 1a2c9e6e4e96d472336503a7bfe951117e22e1ad hans committed Mar 1, 2007
@@ -64,12 +64,14 @@ protected function addColumnAccessorMethods(&$script)
$table = $this->getTable();
foreach ($table->getColumns() as $col) {
-
- if ($col->getType() === PropelTypes::DATE || $col->getType() === PropelTypes::TIME || $col->getType() === PropelTypes::TIMESTAMP) {
+
+ // if they're not using the DateTime class than we will generate "compatibility" accessor method
+ if (!$this->getBuildProperty("useDateTimeClass") && ($col->getType() === PropelTypes::DATE || $col->getType() === PropelTypes::TIME || $col->getType() === PropelTypes::TIMESTAMP)) {
$this->addTemporalAccessor($script, $col);
} else {
- $this->addGenericAccessor($script, $col);
+ $this->addDefaultAccessor($script, $col);
}
+
if ($col->isLazyLoad()) {
$this->addLazyLoader($script, $col);
}
@@ -86,7 +88,7 @@ protected function addColumnMutatorMethods(&$script)
{
foreach ($this->getTable()->getColumns() as $col) {
- if ($col->isLob()) {
+ if ($col->isLobType()) {
$this->addLobMutator($script, $col);
} elseif ($col->getType() === PropelTypes::DATE || $col->getType() === PropelTypes::TIME || $col->getType() === PropelTypes::TIMESTAMP) {
$this->addTemporalMutator($script, $col);
Oops, something went wrong.

0 comments on commit 1a2c9e6

Please sign in to comment.