/**
  * @param lmbDbColumnInfo $relation_column
  * @return array
  */
 function _formRelationHasOne($relation_column)
 {
     $column_name = $relation_column->getName();
     $child_table = $this->_aggrements_resolver->makeTableNameFromRelationColumn($relation_column);
     if (!$this->_db_info->hasTable($child_table)) {
         $this->addMessage("Child table '{$child_table}' for column '{$column_name}' not found in schema");
         return array();
     }
     $form_relation = array($child_table => array('field' => $column_name, 'class' => lmb_camel_case($child_table, true)));
     if ($relation_column->isNullable()) {
         $form_relation[$child_table]['cascade_delete'] = false;
         $form_relation[$child_table]['can_be_null'] = true;
     }
     return $form_relation;
 }
 function __construct($table, $name, $nativeType = null, $size = null, $scale = null, $isNullable = null, $default = null, $isAutoIncrement = null, $isExisting = false)
 {
     $this->nativeType = $this->canonicalizeNativeType($nativeType);
     $this->isAutoIncrement = $this->canonicalizeIsAutoincrement($isAutoIncrement);
     $typeinfo = new lmbMysqliTypeInfo();
     $typemap = $typeinfo->getNativeToColumnTypeMapping();
     $type = $typemap[$nativeType];
     $this->isExisting = $isExisting;
     parent::__construct($table, $name, $type, $size, $scale, $isNullable, $default);
 }
 /**
  * @param lmbDbColumnInfo $column
  */
 protected function _createFormFieldHtml($column)
 {
     return str_replace('%%%', $column->getName(), $this->_createFormFieldHtmlWithoutColumnName($column));
 }