Wrox Programmer Forums
|
BOOK: Building PHP Applications with Symfony, CakePHP, and Zend Framework
This is the forum to discuss the Wrox book Building PHP Applications with Symfony, CakePHP, and Zend Framework by Bartosz Porebski, Karol Przystalski, Leszek Nowak; ISBN: 978-0-470-88734-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Building PHP Applications with Symfony, CakePHP, and Zend Framework section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 15th, 2011, 02:59 PM
Registered User
 
Join Date: Jun 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down Invalid schema element

On page 221, I attempted to build the Doctrine model from schema.yml (in Symfony CLI) using the command symfony doctrine:build --all. I receive the following error for which I have been unable to resolve.
Code:
Invalid schema element named "first_name" at path "columns"
After correcting the typos, here is the schema.yml content
Code:
Addresses:
  actAs:
    Timestampable:
    created:
      name: created
      type: timestamp
      format: Y-m-d H:i:s
      notnull: false
    updated:
      name: updated
      type: timestamp
      format: Y-m-d H:i:s
      notnull: false
columns:
  first_name: { type: string(40), notnull: false }
  last_name: { type: string(40), notnull: false }
  email: { type: string(40), notnull: false }
  phone: { type: integer(40), notnull: false }
  description: { type: object, notnull: false }
  options:
    type: MYISAM
    collate: utf8_general_ci
The YAML temp file Doctrine creates looks like this:
Code:
Addresses:
  actAs:
    Timestampable: null
    created:
      name: created
      type: timestamp
      format: 'Y-m-d H:i:s'
      notnull: false
    updated:
      name: updated
      type: timestamp
      format: 'Y-m-d H:i:s'
      notnull: false
columns:
  first_name:
    type: string(40)
    notnull: false
  last_name:
    type: string(40)
    notnull: false
  email:
    type: string(40)
    notnull: false
  phone:
    type: integer(40)
    notnull: false
  description:
    type: object
    notnull: false
  options:
    type: MYISAM
    collate: utf8_general_ci
I don't understand what the problem is. Please advise.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 9: Element[user control] is not a known element Arya BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 December 20th, 2009 07:31 AM
Problem adding element to the previous element dani1 XSLT 5 September 10th, 2008 01:38 AM
Schema: element is choice of complex types? jkmyoung XML 3 July 18th, 2007 04:54 PM
Schema Complex element with restriction problem [email protected] XML 1 June 27th, 2006 11:45 AM
Schema to Schema conversion onlyda XSLT 5 March 23rd, 2006 12:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.