-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
273 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
lib/filter/doctrine/MaterialMovementArrivalFormFilter.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
/** | ||
* MaterialMovementArrival filter form. | ||
* | ||
* @package xxi | ||
* @subpackage filter | ||
* @author Saritskiy Roman | ||
* @version SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ | ||
*/ | ||
class MaterialMovementArrivalFormFilter extends BaseMaterialMovementArrivalFormFilter | ||
{ | ||
public function configure() | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
/** | ||
* MaterialMovementArrival form. | ||
* | ||
* @package xxi | ||
* @subpackage form | ||
* @author Saritskiy Roman | ||
* @version SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ | ||
*/ | ||
class MaterialMovementArrivalForm extends BaseMaterialMovementArrivalForm | ||
{ | ||
public function configure() | ||
{ | ||
unset ( | ||
$this['deleted_at'] | ||
, $this['created_at'] | ||
, $this['updated_at'] | ||
, $this['created_by'] | ||
, $this['updated_by'] | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?php | ||
/** | ||
* This class has been auto-generated by the Doctrine ORM Framework | ||
*/ | ||
class Version91 extends Doctrine_Migration_Base | ||
{ | ||
public function up() | ||
{ | ||
$this->createTable('material_movement_arrival', array( | ||
'id' => | ||
array( | ||
'type' => 'integer', | ||
'length' => '8', | ||
'autoincrement' => '1', | ||
'primary' => '1', | ||
), | ||
'arrived_at' => | ||
array( | ||
'type' => 'timestamp', | ||
'notnull' => '1', | ||
'length' => '25', | ||
), | ||
'bill' => | ||
array( | ||
'type' => 'string', | ||
'notnull' => '1', | ||
'length' => '255', | ||
), | ||
'supplier_id' => | ||
array( | ||
'type' => 'integer', | ||
'notnull' => '1', | ||
'length' => '8', | ||
), | ||
'created_at' => | ||
array( | ||
'notnull' => '1', | ||
'type' => 'timestamp', | ||
'length' => '25', | ||
), | ||
'updated_at' => | ||
array( | ||
'notnull' => '1', | ||
'type' => 'timestamp', | ||
'length' => '25', | ||
), | ||
'created_by' => | ||
array( | ||
'type' => 'integer', | ||
'length' => '8', | ||
), | ||
'updated_by' => | ||
array( | ||
'type' => 'integer', | ||
'length' => '8', | ||
), | ||
'deleted_at' => | ||
array( | ||
'notnull' => '', | ||
'type' => 'timestamp', | ||
'length' => '25', | ||
), | ||
), array( | ||
'primary' => | ||
array( | ||
0 => 'id', | ||
), | ||
)); | ||
} | ||
|
||
public function down() | ||
{ | ||
$this->dropTable('material_movement_arrival'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<?php | ||
/** | ||
* This class has been auto-generated by the Doctrine ORM Framework | ||
*/ | ||
class Version92 extends Doctrine_Migration_Base | ||
{ | ||
public function up() | ||
{ | ||
$this->createForeignKey('material_movement', 'material_movement_arrival_id_material_movement_arrival_id', array( | ||
'name' => 'material_movement_arrival_id_material_movement_arrival_id', | ||
'local' => 'arrival_id', | ||
'foreign' => 'id', | ||
'foreignTable' => 'material_movement_arrival', | ||
)); | ||
$this->createForeignKey('material_movement_arrival', 'material_movement_arrival_supplier_id_supplier_id', array( | ||
'name' => 'material_movement_arrival_supplier_id_supplier_id', | ||
'local' => 'supplier_id', | ||
'foreign' => 'id', | ||
'foreignTable' => 'supplier', | ||
)); | ||
$this->createForeignKey('material_movement_arrival', 'material_movement_arrival_created_by_sf_guard_user_id', array( | ||
'name' => 'material_movement_arrival_created_by_sf_guard_user_id', | ||
'local' => 'created_by', | ||
'foreign' => 'id', | ||
'foreignTable' => 'sf_guard_user', | ||
'onUpdate' => 'CASCADE', | ||
'onDelete' => 'CASCADE', | ||
)); | ||
$this->createForeignKey('material_movement_arrival', 'material_movement_arrival_updated_by_sf_guard_user_id', array( | ||
'name' => 'material_movement_arrival_updated_by_sf_guard_user_id', | ||
'local' => 'updated_by', | ||
'foreign' => 'id', | ||
'foreignTable' => 'sf_guard_user', | ||
'onUpdate' => 'CASCADE', | ||
'onDelete' => 'CASCADE', | ||
)); | ||
$this->addIndex('material_movement', 'material_movement_arrival_id', array( | ||
'fields' => | ||
array( | ||
0 => 'arrival_id', | ||
), | ||
)); | ||
$this->addIndex('material_movement_arrival', 'material_movement_arrival_supplier_id', array( | ||
'fields' => | ||
array( | ||
0 => 'supplier_id', | ||
), | ||
)); | ||
$this->addIndex('material_movement_arrival', 'material_movement_arrival_created_by', array( | ||
'fields' => | ||
array( | ||
0 => 'created_by', | ||
), | ||
)); | ||
$this->addIndex('material_movement_arrival', 'material_movement_arrival_updated_by', array( | ||
'fields' => | ||
array( | ||
0 => 'updated_by', | ||
), | ||
)); | ||
} | ||
|
||
public function down() | ||
{ | ||
$this->dropForeignKey('material_movement', 'material_movement_arrival_id_material_movement_arrival_id'); | ||
$this->dropForeignKey('material_movement_arrival', 'material_movement_arrival_supplier_id_supplier_id'); | ||
$this->dropForeignKey('material_movement_arrival', 'material_movement_arrival_created_by_sf_guard_user_id'); | ||
$this->dropForeignKey('material_movement_arrival', 'material_movement_arrival_updated_by_sf_guard_user_id'); | ||
$this->removeIndex('material_movement', 'material_movement_arrival_id', array( | ||
'fields' => | ||
array( | ||
0 => 'arrival_id', | ||
), | ||
)); | ||
$this->removeIndex('material_movement_arrival', 'material_movement_arrival_supplier_id', array( | ||
'fields' => | ||
array( | ||
0 => 'supplier_id', | ||
), | ||
)); | ||
$this->removeIndex('material_movement_arrival', 'material_movement_arrival_created_by', array( | ||
'fields' => | ||
array( | ||
0 => 'created_by', | ||
), | ||
)); | ||
$this->removeIndex('material_movement_arrival', 'material_movement_arrival_updated_by', array( | ||
'fields' => | ||
array( | ||
0 => 'updated_by', | ||
), | ||
)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
/** | ||
* MaterialMovementArrival | ||
* | ||
* This class has been auto-generated by the Doctrine ORM Framework | ||
* | ||
* @package xxi | ||
* @subpackage model | ||
* @author Saritskiy Roman | ||
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ | ||
*/ | ||
class MaterialMovementArrival extends BaseMaterialMovementArrival | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
/** | ||
* MaterialMovementArrivalTable | ||
* | ||
* This class has been auto-generated by the Doctrine ORM Framework | ||
*/ | ||
class MaterialMovementArrivalTable extends Doctrine_Table | ||
{ | ||
/** | ||
* Returns an instance of this class. | ||
* | ||
* @return object MaterialMovementArrivalTable | ||
*/ | ||
public static function getInstance() | ||
{ | ||
return Doctrine_Core::getTable('MaterialMovementArrival'); | ||
} | ||
} |