Sha256: 47142f7116d995eabcfb2d7320e61dc524fde6225f67ba4ffb62598decf6eab8

Contents?: true

Size: 846 Bytes

Versions: 57

Compression:

Stored size: 846 Bytes

Contents

module Neo4j::ActiveRel
  module Initialize
    extend ActiveSupport::Concern
    include Neo4j::Shared::Initialize

    # called when loading the rel from the database
    # @param [Neo4j::Embedded::EmbeddedRelationship, Neo4j::Server::CypherRelationship] persisted_rel properties of this relationship
    # @param [Neo4j::Relationship] from_node_id The neo_id of the starting node of this rel
    # @param [Neo4j::Relationship] to_node_id The neo_id of the ending node of this rel
    # @param [String] type the relationship type
    def init_on_load(persisted_rel, from_node_id, to_node_id, type)
      @rel_type = type
      @_persisted_obj = persisted_rel
      changed_attributes && changed_attributes.clear
      @attributes = convert_and_assign_attributes(persisted_rel.props)
      load_nodes(from_node_id, to_node_id)
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
neo4j-6.0.3 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.2 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.1 lib/neo4j/active_rel/initialize.rb
neo4j-5.2.15 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.0 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.0.rc.4 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.0.rc.3 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.0.rc.2 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.0.rc.1 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.0.alpha.12 lib/neo4j/active_rel/initialize.rb
neo4j-5.2.14 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.0.alpha.11 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.0.alpha.9 lib/neo4j/active_rel/initialize.rb
neo4j-5.2.13 lib/neo4j/active_rel/initialize.rb
neo4j-5.2.12 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.0.alpha.8 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.0.alpha.7 lib/neo4j/active_rel/initialize.rb
neo4j-5.2.11 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.0.alpha.5 lib/neo4j/active_rel/initialize.rb
neo4j-6.0.0.alpha.4 lib/neo4j/active_rel/initialize.rb